Add
Returns the given time plus the given duration.
AddDate
Returns the time corresponding to adding the given number of years, months, and days to the given time.Time value.
After
Reports whether TIME1 is after TIME2.
Before
Reports whether TIME1 is before TIME2.
Day
Returns the day of the month of the given time.Time value.
Equal
Reports whether TIME1 is equal to TIME2.
Format
Returns a textual representation of the time.Time value formatted according to the layout string.
Hour
Returns the hour within the day of the given time.Time value, in the range [0, 23].
IsDST
Reports whether the given time.Time value is in Daylight Savings Time.
IsZero
Reports whether the given time.Time value represents the zero time instant, January 1, year 1, 00:00:00 UTC.
Local
Returns the given time.Time value with the location set to local time.
Minute
Returns the minute offset within the hour of the given time.Time value, in the range [0, 59].
Month
Returns the month of the year of the given time.Time value.
Nanosecond
Returns the nanosecond offset within the second of the given time.Time value, in the range [0, 999999999].
Round
Returns the result of rounding TIME to the nearest multiple of DURATION since January 1, 0001, 00:00:00 UTC.
Second
Returns the second offset within the minute of the given time.Time value, in the range [0, 59].
Sub
Returns the duration computed by subtracting TIME2 from TIME1.
Truncate
Returns the result of rounding TIME down to a multiple of DURATION since January 1, 0001, 00:00:00 UTC.
Unix
Returns the given time.Time value expressed as the number of seconds elapsed since January 1, 1970 UTC.
UnixMicro
Returns the given time.Time value expressed as the number of microseconds elapsed since January 1, 1970 UTC.
UnixMilli
Returns the given time.Time value expressed as the number of milliseconds elapsed since January 1, 1970 UTC.
UnixNano
Returns the given time.Time value expressed as the number of nanoseconds elapsed since January 1, 1970 UTC.
UTC
Returns the given time.Time value with the location set to UTC.
Weekday
Returns the day of the week of the given time.Time value.
Year
Returns the year of the given time.Time value.
YearDay
Returns the day of the year of the given time.Time value, in the range [1, 365] for non-leap years, and [1, 366] in leap years.