addHourOfDay()
Adds or subtracts the specified amount of time to the given
Hour of Day
field, based on the calendar's rules.
Syntax
Calendar addHourOfDay(Numeric amount)
- amount is the amount of date or time to be added to the
Hour of Day
field.
Usage
For example, add 10 hours to the current
Hour of Day
field by
calling:Calendar.fromDate(Date.parseString("08/31/1999","mm/dd/yyyy")).addHourOfDay(10).toDate().toString("MM/dd/yyyy hh:mm:ss")
This
example populates a Word Box.