Standard Library
std.time
Time helpers for tool-style scripts.
Exported functions
Return the current UTC timestamp.
Return the current Unix timestamp in seconds.
Return the current Unix timestamp in milliseconds.
Pause the current thread for the specified number of milliseconds.
Pause the current thread for a duration value.
Construct a timestamp from Unix seconds.
Construct a timestamp from Unix milliseconds.
Return the Unix seconds for a timestamp.
Return the Unix milliseconds for a timestamp.
Create a duration in milliseconds.
Create a duration in seconds.
Create a duration in minutes.
Create a duration in hours.
Create a duration in days.
Return the sum of two durations.
Return the difference between two durations.
Multiply a duration by an integer factor.
Return the elapsed duration between two timestamps.
Add a duration to a timestamp.
Subtract a duration from a timestamp.
Format a timestamp as an RFC3339 string in UTC.
Parse an RFC3339 string into a timestamp.
Parse an RFC3339 string and panic on invalid input.