withMinuteAdded
Syntax
$calendar.withMinuteAdded($value)
Description
Creates a new calendar from the given calendar, adding value
to the minute. The addition of the value can have an effect on other values, for example the hour.
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 | |
value | Number | Value to be added to the current minute of the calendar. | yes |
Return value
Type: Business object
A calendar with the changed value for the minute.
Examples
dateTime(2012, 8, 10, 7, 55, 24, 13).toUserCalendar().withMinuteAdded(2).minute()
Output: 57