View Source Moar.DateTime (Moar v1.0.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

Link to this function

from_iso8601!(date_time_string)

View Source
@spec from_iso8601!(date_time_string :: String.t()) :: DateTime.t()

Like DateTime.from_iso8601/1 but raises if the string cannot be parsed.

Link to this function

to_iso8601_rounded(date)

View Source
@spec to_iso8601_rounded(date_time :: DateTime.t()) :: String.t()

Like DateTime.to_iso8601/1 but rounds to the nearest second first.