currDatetime function
The currDatetime function returns the current datetime according to local or UTC settings.
Parameters
currDatetime(utc)
Parameter | Description |
---|---|
utc | A binary value (True/False) controlling if local or UTC settings must be used. Set as False as default. The binary parameter values (True/False) are case sensitive. |
Example
The following example uses the Bike sales dataset.
Description | Screenshot |
---|---|
In this example, we want to add a new column reporting the current date and time. We add a new attribute, called Today, and we type the following formula:
and the attribute will be filled with the current date and time(in this case, the example has been written on the 13th of April, 2022 at 15:49, the time has an accuracy of milliseconds). |