method Ldt.fmt
Formats with a pattern (dd.MM.yyyy HH:mm); an empty pattern is ISO 8601.
Example:
fn main() io {
print("{2026-11-03T18:30.fmt("dd.MM.yyyy HH:mm")}")
}Output
03.11.2026 18:30
pub(api) fn fmt(pattern: str) -> strComplexity. O(len(pattern)).
Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
pattern | str |
Returns
str
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:1751