Crate fuzzy_datetime

Source

Structs§

DateOptions
Options for parsing the date component of strings

Enums§

DateOrder

Traits§

FromFuzzyISOString
This trait may be implemented by any Date or DateTime object An implementation for chrono::NaiveDateTime is provided below

Functions§

detect_date_format_from_generic_list
This assumes all objects in the list have a date string and deduces through elimination
detect_date_format_from_list
This assumes all date strings are in the same format and deduces through elimination
fuzzy_to_date
If the second argument is None, the function will attempt to guess the date order Otherwise, it will use the provided date order and splitter
fuzzy_to_date_string
convert a date-time-like string to a valid ISO 8601-compatible date string for direct output or further processing via chrono If date_opts is None, the function will attempt to guess the date order with bias towards YMD and DMY in case of ambiguity For best performance, provide the date order and splitter
fuzzy_to_date_string_with_time
convert a date-time-like string to a valid ISO 8601-compatible string
fuzzy_to_datetime
If the second argument is None, the function will attempt to guess the date order Otherwise, it will use the provided date order and splitter
fuzzy_to_datetime_string
convert a date-time-like string to a valid ISO 8601-compatible string
fuzzy_to_datetime_string_opts
convert a date-time-like string to a valid ISO 8601-compatible string dt: the date-time string separator: the separator between the date and time parts add_z: whether to add ‘Z’ timezone indicator
is_datetime_like
iso_fuzzy_string_to_datetime
convert a date-time-like string to a valid ISO 8601-compatible date-time string for direct output or further processing via chrono Assume all input dates conforms to the ISO 8601 order, even if incomplete. All guessing is short-circuited This is compatible with original function in julian_day_converter
iso_fuzzy_to_date
Convert a ISO YMD date-like string to a NaiveDate It assumes Y-M-D order and a hyphen as the splitter, but can accommodate missing month or day components
iso_fuzzy_to_date_string
convert a date-like assuming the source string follows the Y-M-D pattern
iso_fuzzy_to_datetime_string
convert a date-time-like assuming the source string follows the Y-M-D H:m:s pattern