Documentation ¶
Overview ¶
Package time provides helpers to work with time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetCalculateTime ¶
GetCalculateTime returns new time with added duration to current time.
func GetTimeInTimezone ¶ added in v2.2.0
GetTimeInTimezone returns the time in given timezone.
func GetTimeNowInLocation ¶
GetTimeNowInLocation returns the current time in location.
func NormalizeHourInTimezone ¶
NormalizeHourInTimezone returns the hour hr in the given timezone tz. For example: UTC 0:00 in +8 = NormalizeHourInTimezone(0, 8) => 8:00 UTC 20:00 in +8 = NormalizeHourInTimezone(20, 8) => 4:00 UTC 20:00 in -22 = NormalizeHourInTimezone(20, -22) => 22:00
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.