Cronex v0.2.0 Cronex.DateTime

This module is an extention of the elixir DateTime module.

This will module will be deprecated as soon as Elixir 1.4 is out.

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