package
0.0.0-20220521092526-d433f404cd13
Repository: https://github.com/golang-design/under-the-hood.git
Documentation: pkg.go.dev

# Functions

After waits for the duration to elapse and then sends the current time on the returned channel.
AfterFunc waits for the duration to elapse and then calls f in its own goroutine.
Date returns the Time corresponding to yyyy-mm-dd hh:mm:ss + nsec nanoseconds in the appropriate zone for that time in the given location.
NewTicker returns a new Ticker containing a channel that will send the time on the channel after each tick.
NewTimer creates a new Timer that will send the current time on its channel after at least duration d.
Now returns the current local time.
Since returns the time elapsed since t.
Sleep pauses the current goroutine for at least the duration d.
Tick is a convenience wrapper for NewTicker providing access to the ticking channel only.
Unix returns the local Time corresponding to the given Unix time, sec seconds and nsec nanoseconds since January 1, 1970 UTC.
Until returns the duration until t.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Common durations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Common durations.
Common durations.
Common durations.
No description provided by the author
Common durations.
No description provided by the author
No description provided by the author
No description provided by the author
Common durations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

A Ticker holds a channel that delivers ``ticks'' of a clock at intervals.
A Time represents an instant in time with nanosecond precision.
Timer 类型表示了一个单一的事件。 当 Timer 过期时,除非 Timer 在 AfterFunc 之后创建,当前时间将发送到 C。 一个 Timer 必须通过 NewTimer 或 AfterFunc 进行创建。.

# Type aliases

A Duration represents the elapsed time between two instants as an int64 nanosecond count.
A Month specifies a month of the year (January = 1, ...).
A Weekday specifies a day of the week (Sunday = 0, ...).