zoneOffset

Syntax

	$calendar.zoneOffset()

Description

The UTC offset of the given calendar in milliseconds (see toSystemCalendar and toUserCalendar).

Parameters

Name Type Description Mandatory Default
calendar Business object The calendar whose UTC offset is to be determined. This can be a system or user calendar. yes

Return value

Type: Number

A number indicating the UTC offset set of the given calendar in milliseconds.

Examples

	date(2012, 8, 15).toUserCalendar().zoneOffset()

Output for the Arizona time zone (UTC -7): -25.200.000

Converted to hours, this is -7.