Skip to main content

Module datetime

Module datetime 

Source
Expand description

Date/time utilities - port of Modules/datetime.c

Provides strftime builtin and EPOCHSECONDS/EPOCHREALTIME/epochtime parameters.

Structs§

StrftimeOptions
Options for strftime builtin

Functions§

builtin_strftime
Execute the strftime builtin
convert_timezone
Convert between timezones
epoch_realtime
Get current time as high-resolution epoch time (float)
epoch_seconds
Get current time as epoch seconds
epoch_time
Get current time as [seconds, nanoseconds] array
format_duration
Format a duration in human-readable form
get_datetime_info
Get current date/time info as a hashmap (for TZ-aware operations)
strftime
Format time using strftime-style format
strptime
Parse a time string using strptime-style format