View Source DateTimeParser.Parser.DateTime (DateTimeParser v1.2.0)

Tokenizes the string for both date and time formats. This prioritizes the international standard for representing dates.

Summary

Functions

Convert the given NaiveDateTime to a DateTime if the user provided to_utc: true. If the result is already in UTC, this will pass through.

Functions

Link to this function

maybe_convert_to_utc(datetime, opts)

View Source

Convert the given NaiveDateTime to a DateTime if the user provided to_utc: true. If the result is already in UTC, this will pass through.