Clock returns the hour, minute, and second within the day specified by t.
Date returns the year, month, and day in which t occurs.
Day returns the day of the month specified by t.
Equal reports whether t and u represent the same time instant. Two times can be equal even if they are in different locations. For example, 6:00 +0200 and 4:00 UTC are Equal.
Format returns a textual representation of the time value formatted according to the layout defined by the argument. See the documentation for the constant called Layout to see how to represent the layout format.
Hour returns the hour within the day specified by t, in the range [0, 23].
In returns a copy of t representing the same time instant, but with the copy's location information set to loc for display purposes.
JSDate returns a javascript date object at time t.
Local returns t with the location set to local time.
Millisecond returns the millisecond offset within the second specified by t, in the range [0, 1000].
Minute returns the minute offset within the hour specified by t, in the range [0, 59].
Month returns the month of the year specified by t.
Second returns the second offset within the minute specified by t, in the range [0, 59].
String returns the time formatted using the format string
"2006-01-02 15:04:05.999999999 -0700 MST"
The returned string is meant for debugging; for a stable serialized representation, use t.Format with an explicit format string.
Unix returns t as a Unix time, the number of seconds elapsed since January 1, 1970 UTC. The result does not depend on the location associated with t.
UTC returns t with the location set to UTC.
Weekday returns the day of the week specified by t.
Year returns the year in which t occurs.
YearDay returns the day of the year specified by t, in the range [1,365] for non-leap years, and [1,366] in leap years.
Zone computes the time zone in effect at time t, returning the abbreviated name of the zone (such as "CET") and its offset in seconds east of UTC.
A Time represents an instant in time with millisecond precision.