Quantum v2.2.1 Quantum.DateLibrary behaviour View Source
This Behaviour offers Date Library Independant integration of helper functions.
This behaviour is considered internal. Breaking Changes can occur on every release.
Make sure your implementation passes Quantum.DateLibraryTest
. Otherwise
unexpected behaviour can occur.
Link to this section Summary
Callbacks
Gives back the required application dependency to start, if any is needed
Convert NaiveDateTime
in given tz to NaiveDateTime
in UTC
Convert NaiveDateTime
in UTC to NaiveDateTime
in given tz
Link to this section Functions
Convert Date to TZ
Link to this function
to_utc!(date, tz)
View Source
to_utc!(NaiveDateTime.t, :utc | binary) :: NaiveDateTime.t | no_return
to_utc!(NaiveDateTime.t, :utc | binary) :: NaiveDateTime.t | no_return
Convert Date to Utc
Link to this section Callbacks
Gives back the required application dependency to start, if any is needed.
Link to this callback
tz_to_utc!(arg0, arg1)
View Source
tz_to_utc!(NaiveDateTime.t, String.t) :: NaiveDateTime.t | no_return
Convert NaiveDateTime
in given tz to NaiveDateTime
in UTC.
Link to this callback
utc_to_tz!(arg0, arg1)
View Source
utc_to_tz!(NaiveDateTime.t, String.t) :: NaiveDateTime.t | no_return
Convert NaiveDateTime
in UTC to NaiveDateTime
in given tz.