timezoneOffset(unixEpochMillis,timezone)¶
Definition¶
Long timezoneOffset(Number unixEpochMillis, String timezone)
Description¶
Returns the milliseconds offset of the supplied time zone from UTC at the specified date/time. If Daylight Saving Time is in effect at the specified date, the offset value is adjusted with the amount of daylight saving.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| unixEpochMillis | Number | Number of milliseconds since 1/1/1970 in UTC timezone |
| timezone | String | TimeZone to get offset for |