current-local-time function

The db2-fn:current-local-time function returns the current time in the local time zone.

Syntax

Read syntax diagramSkip visual syntax diagramdb2-fn:current-local-time()

Returned value

The returned value is an xs:time value that is the current time. The returned value does not include a time zone component.

For example, if you invoke the function at 6:31 Greenwich Mean Time (GMT), and the local time zone is Eastern Standard Time (-PT5H), an example returned value is 01:31:35.519001.