rollMinute()

Adds the specified (signed) amount to the Minute field, without changing larger fields.

Syntax

Calendar rollMinute(Numeric amount)
  1. amount is the signed amount to add to the Minute field.

Usage

For example, to roll the current time up by one minute, you can achieve it by calling rollMinute(1).