Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstBeforeSecond ¶ added in v1.13.0
FirstBeforeSecond returns true if the first time is before the second time. If either of the times is nil or zero value, it returns true.
func Midday ¶ added in v1.7.0
Midday returns the time corresponding to 12:00:00 on the current local date.
func MiddayForDate ¶ added in v1.8.0
MiddayForDate returns the time corresponding to 12:00:00 on the given year, month, and day. The time is returned in the local time zone.
func UTCMidday ¶ added in v1.7.0
UTCMidday returns the time corresponding to 12:00:00 in UTC on the current UTC date.
func UTCMiddayForDate ¶ added in v1.8.0
UTCMiddayForDate returns the time corresponding to 12:00:00 in UTC for the given year, month, and day.
func UTCYesterday ¶
UTCYesterday returns the local time of yesterday with the location set to UTC.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.