View Source CloudflareApi.Utils.DateTime (cloudflare_api v0.2.2)
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
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.
Return a DateTime about 200 years into the future
Specs
in_the_past?(DateTime.t()) :: boolean()
Check if past_time
occurs before the current time
Specs
in_the_past?(DateTime.t(), DateTime.t()) :: boolean()
Check if past_time
occurs before current_time
. Equal date returns true