withMinute
Syntax
$calendar.withMinute($minute)
Description
Creates a new calendar from the given calendar, setting the minute to minute
.
Parameters
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
calendar | Business object | The calendar whose minute is to be changed. It can be a system or user calendar. | yes | |
minute | Number | Value for the new minute to be set for the calendar. | yes |
Return value
Type: Business object
A calendar with the changed value for the minute.
Examples
dateTime(2012, 8, 15, 5, 55, 24, 45).toUserCalendar().withMinute(22).minute()
Output: 22