Skip to content

Datetime Now

The datetime::now function returns the current time as an RFC 3339 formatted string.

Syntax

datetime::now()

Parameters

  • None: This function does not require any parameters.

Returns

  • String: The current time in RFC 3339 format.

Example

Try it out below!
datetime::now()

This function is useful for ensuring a specific age for things like age gating, especially when used in conjunction with other functions like datetime::add.