omnixent v0.0.1 Omnixent.Utils View Source

Link to this section Summary

Functions

Returns the current date as an integer value.

Returns the date of 7 days ago as an integer value.

Returns yesterday's date as an integer value.

Link to this section Functions

Returns the current date as an integer value.

Examples

iex(1)> Omnixent.Utils.current_date 2020726

Returns the date of 7 days ago as an integer value.

Examples

iex(1)> Omnixent.Utils.last_week_day 2020719

Returns yesterday's date as an integer value.

Examples

iex(1)> Omnixent.Utils.yesterday 2020725