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, to subtract 5 minutes from the current time of the calendar, you can achieve it by calling:
addMinute(-5)