GoodTimes v1.1.1 GoodTimes.Date

Expressive functions operating on and returning dates.

Unless otherwise stated, they all operate on and return an Erlang date based on the Coordinated Universal Time (UTC).

Examples

iex> today
{2015, 2, 27}
iex> tomorrow
{2015, 2, 28}
iex> yesterday
{2015, 2, 26}

Summary

Functions

Returns today’s date

Returns tomorrow’s date

Returns yesterday’s date

Functions

today()

Specs

today :: GoodTimes.date

Returns today’s date.

Examples

iex> today
{2015, 2, 27}
tomorrow()

Specs

tomorrow :: GoodTimes.date

Returns tomorrow’s date.

Examples

iex> tomorrow
{2015, 2, 28}
yesterday()

Specs

yesterday :: GoodTimes.date

Returns yesterday’s date.

Examples

iex> yesterday
{2015, 2, 26}