rollHourOfDay()

Adds the specified (signed) amount to the Hour of Day field, without changing larger fields.

Syntax

Calendar rollHourOfDay(Numeric amount)
  1. amount is the signed amount to add to the Hour of Day field.

Usage

This method rolls the hour value in the range between 0 and 23, which is zero-based.