addMinute()

Adds or subtracts the specified amount of time to the given Minute field, based on the calendar's rules.

Syntax

Calendar addMinute(Numeric amount)
  1. amount is the amount of date or time to be added to the Minute field.

Usage

For example, add 10 minutes to the current time of the Minute field by calling:
Calendar.fromDate(Date.parseString("08/31/1999","mm/dd/yyyy")).addMinute(10).toDate().toString("MM/dd/yyyy hh:mm:ss")
This example populates a Word Box.