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↑
today() | Returns today’s date |
tomorrow() | Returns tomorrow’s date |
yesterday() | Returns yesterday’s date |
Functions
Specs:
- today :: GoodTimes.date
Returns today’s date.
Examples
iex> today
{2015, 2, 27}
Specs:
- tomorrow :: GoodTimes.date
Returns tomorrow’s date.
Examples
iex> tomorrow
{2015, 2, 28}
Specs:
- yesterday :: GoodTimes.date
Returns yesterday’s date.
Examples
iex> yesterday
{2015, 2, 26}