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 date time up by one minute call:
Calendar.fromDate(Date.parseString("08/31/1999","mm/dd/yyyy")).rollMinute(1).toDate().toString("MM/dd/yyyy hh:mm:ss")
This example populates a Word Box.