timex v3.2.0 Timex.Types View Source

Link to this section Summary

Link to this section Types

Link to this type calendar_types() View Source
calendar_types() :: Date.t() | DateTime.t() | NaiveDateTime.t()
Link to this type datetime() View Source
datetime() :: {date(), time()}
Link to this type daynum() View Source
daynum() :: 1..366
Link to this type iso_triplet() View Source
iso_triplet() :: {year(), weeknum(), weekday()}
Link to this type megaseconds() View Source
megaseconds() :: non_neg_integer()
Link to this type microsecond_datetime() View Source
microsecond_datetime() :: {date(), microsecond_time()}
Link to this type microsecond_time() View Source
microsecond_time() ::
  {hour(), minute(), second(), microsecond() | microseconds()}
Link to this type microseconds() View Source
microseconds() :: non_neg_integer()
Link to this type num_of_days() View Source
num_of_days() :: 28..31
Link to this type shift_units() View Source
shift_units() ::
  :milliseconds | :seconds | :minutes | :hours | :days | :weeks | :years
Link to this type time_units() View Source
time_units() ::
  :microseconds
  | :milliseconds
  | :seconds
  | :minutes
  | :hours
  | :days
  | :weeks
  | :years
Link to this type tz_offset() View Source
tz_offset() :: -14..12
Link to this type valid_datetime() View Source
valid_datetime() ::
  Date.t()
  | DateTime.t()
  | NaiveDateTime.t()
  | datetime()
  | date()
  | microsecond_datetime()
Link to this type valid_timezone() View Source
valid_timezone() :: String.t() | tz_offset() | :utc | :local
Link to this type week_of_month() View Source
week_of_month() :: 1..5
Link to this type weekday() View Source
weekday() :: 1..7
Link to this type weekday_name() View Source
weekday_name() ::
  :monday | :tuesday | :wednesday | :thursday | :friday | :saturday | :sunday
Link to this type weeknum() View Source
weeknum() :: 1..53
Link to this type weekstart() View Source
weekstart() :: weekday() | binary() | atom()