View Source Euclid.DateTime (Euclid v0.4.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

Specs

from_iso8601!(date_time_string :: String.t()) :: DateTime.t()

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

Specs

to_iso8601(date_time :: DateTime.t(), :rounded) :: String.t()

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