Rfc3339¶
Strict RFC 3339 parsing and formatting. See: https://datatracker.ietf.org/doc/html/rfc3339
Constructors¶
create¶
Returns¶
- Rfc3339 val^
Public Functions¶
parse¶
Parse an RFC 3339 timestamp into a fresh ZonedDateTime in Offset mode (RFC 3339 carries offset, not zone). Returns ParseError on malformed input.
Parameters¶
- s: String val
Returns¶
- (ZonedDateTime iso^ | ParseError)
parse_in_place¶
Parse an RFC 3339 timestamp, mutating zdt to represent the
result. Zero allocation on the happy path. Self is left unchanged
on error.
Parameters¶
- s: String val
- zdt: ZonedDateTime ref
Returns¶
- (None val | ParseError)
format¶
RFC 3339 representation. Delegates to ZonedDateTime.string().
Parameters¶
- zdt: ZonedDateTime box
Returns¶
- String iso^
format_in_place¶
Append the RFC 3339 representation to buf.
Parameters¶
- zdt: ZonedDateTime box
- buf: String ref
Returns¶
- None val
is_digit¶
Parameters¶
- c: U8 val
Returns¶
- Bool val
eq¶
Parameters¶
- that: Rfc3339 val
Returns¶
- Bool val
ne¶
Parameters¶
- that: Rfc3339 val
Returns¶
- Bool val