enum TimeFormat
Predefined text formats of parse (§17.5); every parse also accepts a pattern string instead.
Example:
use std.time { Date, TimeFormat }
fn main() io {
print("{Date.parse("2026-11-03", .Iso8601)!.toIso()}")
}Output
2026-11-03
pub(api) enum TimeFormatSince. 1.0.0-beta
Variants
Iso8601 | ISO 8601 / RFC 3339. |
Defined in: std/time/time.oxl:252