Function hl7_parser::parse_time
source · pub fn parse_time<'s>(s: &'s str) -> Result<OffsetDateTime, 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 time::Month::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]
)