Expand description
Date and time operations
Windjammer’s std::time module maps to these functions.
Structs§
- Instant
- Instant wrapper for time measurements (re-exported for Windjammer)
Functions§
- add_
days - Add days to timestamp
- add_
seconds - Add seconds to timestamp
- duration_
millis - Calculate duration in milliseconds between two timestamps
- duration_
secs - Calculate duration in seconds between two timestamps
- format
- Format timestamp as string
- now
- Get current instant for time measurements
- now_
local - Get local date/time as string
- now_
millis - Get current timestamp (milliseconds since epoch)
- now_
string - Get current date/time as string (ISO 8601)
- parse
- Parse ISO 8601 date string
- parse_
format - Parse date string with custom format
- sleep
- Sleep for duration (seconds)
- sleep_
millis - Sleep for duration (milliseconds)
- timestamp
- Get current timestamp (seconds since epoch)