Function parse_timestamp_chrono

Source
pub fn parse_timestamp_chrono<'s>(
    s: &'s str,
) -> Result<LocalResult<DateTime<FixedOffset>>, TimeParseError>
Expand description

Parse an HL7 timestamp

Any missing components from the timestamp will be substituted with the first of that time period (for example, if the month is not provided, it will default to 1 (January), hour will default to 0, offset will default to UTC)

ยงArguments

  • s - A string slice representing the HL7 timestamp (format: YYYY[MM[DD[HH[MM[SS[.S[S[S[S]]]]]]]]][+/-ZZZZ])