withDstOffset

Syntax

	$calendar.withDstOffset($offset)

Description

Creates a new calendar from the given calendar, setting the daylight saving offset (DST) to offset. Changing the offset can also change other values such as the hour.

Parameters

Name Type Description Mandatory Default
calendar Business object The calendar whose daylight saving time offset is to be changed. It can be a system or user calendar. yes
offset Number Value for the new DST offset in milliseconds to be set for the calendar. yes

Return value

Type: Business object

A calendar with the changed value for the daylight saving time offset.

Examples

	dateTime(2012, 8, 10, 7, 55, 24, 13).toUserCalendar().withDstOffset(3600000).dstOffset()

Output: 3.600.000