toml::datetime
TOML date / time values (RFC 3339, with TOML's local forms).
Structs
DateSource
pub struct DateA calendar date.
TimeSource
pub struct TimeA time of day. TOML keeps fractions to the nanosecond; more digits are truncated.
DatetimeSource
pub struct DatetimeOne of TOML's four date-time forms, by which parts are present:
offset date-time (all three), local date-time (date + time),
local date (date), local time (time). offset is minutes east of
UTC (Z is 0) and only comes with both date and time.
The form's name, as toml-test spells it:
datetime,datetime-local,date-localortime-local.Read a TOML 1.1 date-time (
1979-05-27T07:32:00Z,1979-05-27 07:32:00,1979-05-27,07:32:00.999,07:32).
Trait implementations 1
impl Display for Datetime
Functions
scanSource
pub fn scan(s: str, at: usize, v11: bool) -> (Datetime, usize) | none A date-time at at of s: the value and the index after it, or
none when the text there is not a valid date-time. v11 lets the
seconds be left out.