Import with #import "std/time_go".

Time :: struct
Duration :: struct
Ticker :: struct
ParseResult :: struct { value: Time; error: Error; }
Now :: () -> Time
After :: (value: Time, other: Time) -> bool
Add :: (value: Time, duration: Duration) -> Time
Parse :: (layout: string, value: string) -> ParseResult
UTC :: (value: Time) -> Time
Format :: (value: Time, layout: string) -> string
Unix :: (value: Time) -> s64
FromUnix :: (seconds: s64, nanos: s64) -> Time
Until :: (value: Time) -> Duration
NewTicker :: (duration: Duration) -> *Ticker
StopTicker :: (ticker: *Ticker)
TickerChannel :: (ticker: *Ticker) -> Any

Source ↗ · All modules