View Source CloudflareApi.Utils.DateTime (cloudflare_api v0.0.3)

Link to this section Summary

Functions

Add the specified number of units to the current time.

Return a DateTime about 200 years into the future

Check if past_time occurs before the current time

Check if past_time occurs before current_time. Equal date returns true

Link to this section Functions

Link to this function

adjust_cur_time(num_years, atom)

View Source

Add the specified number of units to the current time.

Supplying a negative number will adjust the time backwards by the specified units, while supplying a positive will adjust the time forwards by the specified units.

Link to this function

adjust_cur_time_trunc(num_weeks, atom)

View Source
Link to this function

adjust_time(time, num_weeks, atom)

View Source

Return a DateTime about 200 years into the future

Link to this function

expired?(expires_at, current_time)

View Source

Specs

in_the_past?(DateTime.t()) :: boolean()

Check if past_time occurs before the current time

Link to this function

in_the_past?(past_time, current_time)

View Source

Specs

in_the_past?(DateTime.t(), DateTime.t()) :: boolean()

Check if past_time occurs before current_time. Equal date returns true