Difference returns the interval between t1 and t2, which may be negative.
TimeOfDay represents a time of day (no date), stored as microseconds since midnight.
FromInt constructs a TimeOfDay from an int64, representing microseconds since midnight. Inputs outside the range [0, microsecondsPerDay) are modded as appropriate.
FromTime constructs a TimeOfDay from a time.Time, ignoring the date and time zone.
FromTimeAllow2400 assumes 24:00 time is possible from the given input, otherwise falling back to FromTime. It assumes time.Time is represented as lib/pq or as unix time.
New creates a TimeOfDay representing the specified time.
Random generates a random TimeOfDay.
Add adds a Duration to a TimeOfDay, wrapping into the next day if necessary.
Hour returns the hour specified by t, in the range [0, 24].
Microsecond returns the microsecond offset within the second specified by t, in the range [0, 999999].
Minute returns the minute offset within the hour specified by t, in the range [0, 59].
Round takes a TimeOfDay, and rounds it to the given precision.
Second returns the second offset within the minute specified by t, in the range [0, 59].
ToTime converts a TimeOfDay to a time.Time, using the Unix epoch as the date.