Documentation ¶
Index ¶
- Constants
- func Between(left, mid, right time.Duration) time.Duration
- func From(v int, unit time.Duration) time.Duration
- func FromDay(sec int) time.Duration
- func FromHour(sec int) time.Duration
- func FromMicrosecond(sec int) time.Duration
- func FromMillisecond(sec int) time.Duration
- func FromMinute(sec int) time.Duration
- func FromSecond(sec int) time.Duration
- func IsBetween(left, mid, right time.Time) bool
- func IsBetweenOrEqual(left, mid, right time.Time) bool
- func NowIn(location string) (time.Time, error)
- type Timer
Constants ¶
View Source
const Day time.Duration = 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
func FromMicrosecond ¶
func FromMillisecond ¶
func FromMinute ¶ added in v0.0.14
func FromSecond ¶
func IsBetweenOrEqual ¶ added in v0.0.13
IsBetweenOrEqual returns true if the time is between the two times or equal to one of them.
Types ¶
Click to show internal directories.
Click to hide internal directories.