Quantum v2.0.3 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 UTC to NaiveDateTime in given tz

Link to this section Callbacks

Link to this callback dependency_application() View Source
dependency_application() :: atom | nil

Gives back the required application dependency to start, if any is needed.

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.