View Source Moar.DateTime (Moar v1.2.0)
DateTime-related functions.
Link to this section Summary
Functions
Like DateTime.from_iso8601/1
but raises if the string cannot be parsed.
Like DateTime.to_iso8601/1
but rounds to the nearest second first.
Link to this section Functions
@spec from_iso8601!(date_time_string :: String.t()) :: DateTime.t()
Like DateTime.from_iso8601/1
but raises if the string cannot be parsed.
@spec to_iso8601_rounded(date_time :: DateTime.t()) :: String.t()
Like DateTime.to_iso8601/1
but rounds to the nearest second first.