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

Summary

today()

Returns today’s date

tomorrow()

Returns tomorrow’s date

yesterday()

Returns yesterday’s date

Functions

today()

Specs:

Returns today’s date.

Examples

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

Specs:

Returns tomorrow’s date.

Examples

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

Specs:

Returns yesterday’s date.

Examples

iex> yesterday
{2015, 2, 26}
Source