Vex::TimeConverter
Constants
LENIENT_PARSERS = [Time::Format.new("%FT%T.%N"), Time::Format.new("%FT%T"), Time::Format.new("%F %T.%N"), Time::Format.new("%F %T")]
Lenient fallbacks accommodate real-world emitters that drop the
timezone or use a space separator. Canonical's Ubuntu Security Notice
docs are one such producer ("2025-07-08 22:59:24.546301"). When the
input has no zone we assume UTC, which matches the most common
producer intent and lets these docs interoperate.
STRICT_PARSERS = [Time::Format.new("%FT%T.%N%:z"), Time::Format.new("%FT%T%:z"), Time::Format.new("%FT%T.%NZ"), Time::Format.new("%FT%TZ")]
RFC 3339 variants the spec mandates. These run first.
Instance methods
Emits Z for UTC instants (matching go-vex and the spec example),
and the explicit offset like +09:00 otherwise. Both forms are valid
RFC 3339.