Skip to main content

Module time

Module time 

Source
Expand description

std::time - Unix timestamp functions and time formatting.

All timestamps are Unix seconds as i64. format_time uses a minimal strftime-like pattern (%Y, %m, %d, %H, %M, %S). time_parts returns [year, month, day, hour, minute, second] as an arr[int]. time_add and time_diff are trivial arithmetic helpers - a proper time type is planned.

Modulesยง

format_time ๐Ÿ”’
Unix timestamp -> formatted string conversion.
now ๐Ÿ”’
time_arith ๐Ÿ”’
time_parts ๐Ÿ”’

Constantsยง

KEYWORDS

Functionsยง

module