Cronex v0.1.0 Cronex.DateTime

This module is an extention of the elixir DateTime module.

Summary

Functions

Returns current date and time as a %Cronex.DateTime{}

Functions

current_date_time()

Returns current date and time as a %Cronex.DateTime{}.

When Mix.env is equal to :test it return a %Cronex.DateTime{} with all values equal to 0;

Example

iex> current_date_time = Cronex.DateTime.current_date_time
iex> current_date_time.hour > 0
true