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
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}