Skip to main content

temporal_from_map_wrapper

Function temporal_from_map_wrapper 

Source
pub fn temporal_from_map_wrapper(
    map: &HashMap<String, Value>,
) -> Option<TemporalValue>
Expand description

Try to interpret a map as a temporal value.

Recognizes single-entry maps with a temporal type key (Date, Time, etc.) whose value is a map of the appropriate fields. Returns None if the map does not match any temporal pattern.