local-timezone function

The db2-fn:local-timezone function returns the time zone of the local system.

Syntax

Read syntax diagramSkip visual syntax diagramdb2-fn:local-timezone()

Returned value

The returned value is an xdt:dayTimeDuration value that represents the local time zone offset from Coordinated Universal Time (UTC).

For example, if you invoke this function in the local time zone of Eastern Standard Time, the returned value is -PT5H.