timezone
timezone
castFromServer()
returns date in given TZ from given server date, takes DST into account
Arguments
| Name | Type | Required | Default | Options | Description |
| thisDate | date | Yes | | | |
| tz | string | No | #variables.mytz# | | |
castFromUTC()
returns date in given TZ from given UTC date, takes DST into account
Arguments
| Name | Type | Required | Default | Options | Description |
| thisDate | date | Yes | | | |
| tz | string | No | #variables.mytz# | | |
castToServer()
returns server date in given TZ from given UTC date, takes DST into account
Arguments
| Name | Type | Required | Default | Options | Description |
| thisDate | date | Yes | | | |
| tz | string | No | #variables.mytz# | | |
castToUTC()
returns UTC from given date in given TZ, takes DST into account
Arguments
| Name | Type | Required | Default | Options | Description |
| thisDate | date | Yes | | | |
| tz | string | No | #variables.mytz# | | |
getAvailableTZ()
returns a list of timezones available on this server
Arguments
| Name | Type | Required | Default | Options | Description |
| None |
getDST()
returns DST savings in hours
Arguments
| Name | Type | Required | Default | Options | Description |
| tz | string | No | #variables.mytz# | | |
getRawOffset()
returns rawoffset in hours
Arguments
| Name | Type | Required | Default | Options | Description |
| tz | string | No | #variables.mytz# | | |
getServerId()
returns the server timezone id. contributed by dan switzer: [email protected]
Arguments
| Name | Type | Required | Default | Options | Description |
| None |
getServerTZ()
returns server TZ (long)
Arguments
| Name | Type | Required | Default | Options | Description |
| None |
getServerTZShort()
returns server TZ (short). contributed by dan switzer: [email protected]
Arguments
| Name | Type | Required | Default | Options | Description |
| None |
getTZByOffset()
returns a list of timezones available on this server for a given raw offset
Arguments
| Name | Type | Required | Default | Options | Description |
| thisOffset | numeric | Yes | | | |
getTZOffset()
returns offset in hours
Arguments
| Name | Type | Required | Default | Options | Description |
| thisDate | date | No | #now()# | | |
| tz | string | No | #variables.mytz# | | |
init()
Arguments
| Name | Type | Required | Default | Options | Description |
| None |
isDST()
determines if a given date in a given timezone is in DST
Arguments
| Name | Type | Required | Default | Options | Description |
| dateToTest | date | No | #now()# | | |
| tz | string | Yes | #variables.mytz# | | |
isValidTZ()
validates if a given timezone is in list of timezones available on this server
Arguments
| Name | Type | Required | Default | Options | Description |
| tz | string | No | #variables.mytz# | | |
usesDST()
determines if a given timezone uses DST
Arguments
| Name | Type | Required | Default | Options | Description |
| tz | string | No | #variables.mytz# | | |