View Source Zoth.Chrono (Zoth v1.0.1)

Help to support manipulating several kinds of date/time structs.

Link to this section Summary

Link to this section Types

@type any_date_time() :: DateTime.t() | NaiveDateTime.t()

Link to this section Functions

Link to this function

add_time(date_time, amount, unit \\ :second)

View Source
@spec to_unix(DateTime.t() | NaiveDateTime.t()) :: non_neg_integer()
@spec unix_now() :: non_neg_integer()