withMillisecond

Syntax

	$calendar.withMillisecond($millisecond)

Description

Creates a new calendar from the given calendar, setting the millisecond to millisecond.

Parameters

Name Type Description Mandatory Default
calendar Business object The calendar whose millisecond is to be changed. It can be a system or user calendar. yes
millisecond Number Value for the new millisecond to set for the calendar. yes

Return value

Type: Business object

A calendar with the changed value for the millisecond.

Examples

	dateTime(2012, 8, 15, 5, 55, 24, 45).toUserCalendar().withMillisecond(22).millisecond()

Output: 22