Free cookie consent management tool by TermsFeed

timezone() Function

On This Page

Function

timezone()

Returns the default offset in minutes from GMT for the current user's time zone.

Parameters

No parameters.

Returns

Integer

Usage considerations

Because this function can be used in many places—like process models, SAIL interfaces, and expression rules—the return value depends on the context. For example, this return value might be the logged-in user's configured time zone in one instance and the process initiator's time zone in another.

Examples

1
timezone()

Returns 0 when the user's time zone is GMT.

1
timezone()

Returns 600 when the user's time zone is GMT+10:00.

1
timezone()

Returns -360 when the user's time zone is GMT-06:00.

Feature compatibility

The table below lists this function's compatibility with various features in Appian.
Feature Compatibility Note
Portals Compatible
Offline Interfaces Incompatible
Sync-Time Custom Record Fields Compatible

Can be used to create a custom record field that only evaluates at sync time.

Real-Time Custom Record Fields Incompatible

Custom record fields that evaluate in real time must be configured using one or more Custom Field functions.

Process Reports Compatible
Process Events Compatible

Can be used to configure a process event node, such as a start event or timer event.

Process Autoscaling Compatible

Can be used in autoscaled processes.

Event Consumer Filter Conditions Incompatible

Cannot be used in filter conditions.

Event Consumer Event Handlers Incompatible

Cannot be used in event handler expressions.

Feedback