Node:Timezone, Previous:Time, Up:timestamp



Timezone

The timezone parameter specifies which timezone the formatted time should be shown in. It must be a string in the RFC822 timezone format: an optional + or - sign, followed by four digits denoting hours and minutes from UTC. For example, Australian Eastern Standard Time is +1000 (or simply 1000), USA Pacific Standard Time is -0800.

Examples:

timestamp('yyyy-mm-dd HH:mm:ss z', 'filetime')
          => 2002-12-25 00:00:00 UTC
timestamp('yyyy-mm-dd HH:mm:ss z', 'filetime', '+1000')
          => 2002-12-25 10:00:00 +1000
timestamp('yyyy-mm-dd HH:mm:ss z', 'filetime', '-0600')
          => 2002-12-24 18:00:00 -0600

Since the Web is a medium with global reach, it is recommended that you use always use the UTC timezone for your timestamps.