Timex.Types (timex v3.7.5) View Source

Link to this section Summary

Link to this section Types

Specs

calendar_types() :: Date.t() | DateTime.t() | NaiveDateTime.t() | Time.t()

Specs

date() :: {year(), month(), day()}

Specs

datetime() :: {date(), time()}

Specs

day() :: Calendar.day()

Specs

daynum() :: 1..366

Specs

hour() :: Calendar.hour()

Specs

iso_triplet() :: {year(), weeknum(), weekday()}

Specs

megaseconds() :: non_neg_integer()

Specs

microsecond() :: Calendar.microsecond()
Link to this type

microsecond_datetime()

View Source

Specs

microsecond_datetime() :: {date(), microsecond_time()}

Specs

microsecond_time() ::
  {hour(), minute(), second(), microsecond() | microseconds()}

Specs

microseconds() :: non_neg_integer()

Specs

minute() :: Calendar.minute()

Specs

month() :: Calendar.month()

Specs

num_of_days() :: 28..31

Specs

second() :: Calendar.second()

Specs

seconds() :: non_neg_integer()

Specs

shift_units() ::
  :milliseconds | :seconds | :minutes | :hours | :days | :weeks | :years

Specs

std_offset() :: Calendar.std_offset()

Specs

time() :: {hour(), minute(), second()}

Specs

time_units() ::
  :microsecond
  | :microseconds
  | :millisecond
  | :milliseconds
  | :second
  | :seconds
  | :minute
  | :minutes
  | :hour
  | :hours
  | :day
  | :days
  | :week
  | :weeks
  | :year
  | :years

Specs

time_zone() :: Calendar.time_zone()

Specs

timestamp() :: {megaseconds(), seconds(), microseconds()}

Specs

tz_offset() :: -14..12

Specs

utc_offset() :: Calendar.utc_offset()

Specs

valid_date() :: Date.t() | date()

Specs

valid_datetime() ::
  Date.t()
  | DateTime.t()
  | NaiveDateTime.t()
  | Time.t()
  | datetime()
  | date()
  | microsecond_datetime()

Specs

valid_time() :: Time.t() | time()

Specs

valid_timezone() :: String.t() | tz_offset() | :utc | :local

Specs

week_of_month() :: 1..5

Specs

weekday() :: 1..7

Specs

weekday_name() ::
  :monday | :tuesday | :wednesday | :thursday | :friday | :saturday | :sunday

Specs

weeknum() :: 1..53

Specs

weekstart() :: weekday() | binary() | atom()

Specs

year() :: Calendar.year()

Specs

zone_abbr() :: Calendar.zone_abbr()