addSecond()

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

Syntax

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