timeZone function

The timeZone function returns the current timezone, i.e. the difference between local time and UTC time. The resulting type is time.


Parameters

timeZone()

No parameters are required in this formula.


Example

The following example uses the HR-employee-attrition dataset.

Description

Screenshot

In this example, we want to add a new column containing the timezone this dataset has been modified.

We add a new attribute, called timezone, and type the following formula:

timeZone()

and the attribute is filled with the difference between local and UTC time, that is UTC +2.