Module datetime
Source - DatetimeFunction
- DatetimeMethod
- date_add_timedelta
- Add timedelta to date (compile-time helper)
Returns new date tuple (year, month, day)
- date_diff
- Subtract two dates to get timedelta days (compile-time helper)
- date_from_iso
- Parse date from ISO string (YYYY-MM-DD)
- date_isoweekday
- Get ISO weekday from date (1=Monday, 7=Sunday)
- date_to_iso
- Format date to ISO string (YYYY-MM-DD)
- date_today
- Get today’s date as (year, month, day)
- date_weekday
- Get weekday from date (0=Monday, 6=Sunday)
- datetime_add_timedelta
- Add timedelta to datetime (compile-time helper)
timedelta is (days, seconds, microseconds)
Returns new datetime tuple (year, month, day, hour, minute, second, microsecond)
- datetime_diff
- Subtract two datetimes to get timedelta (compile-time helper)
Returns (days, seconds, microseconds)
- datetime_from_iso
- Parse ISO format datetime string (compile-time)
- datetime_from_timestamp
- Create datetime from Unix timestamp
- datetime_now_local
- Get current local datetime as Unix timestamp
- datetime_now_utc
- Get current UTC datetime as Unix timestamp
- datetime_strftime
- Format datetime with custom format string (compile-time)
- datetime_sub_timedelta
- Subtract timedelta from datetime (compile-time helper)
- datetime_to_iso
- Format datetime to ISO string (compile-time)
- get_attribute
- get_datetime_method
- get_function
- time_from_iso
- Parse time from ISO string (HH:MM:SS or HH:MM:SS.ffffff)
- time_to_iso
- Format time to ISO string (HH:MM:SS or HH:MM:SS.ffffff)