The rollType function rolls the current hour into the provided value and returns the value in hours based on a 24-hour clock. In this convention of timekeeping, the day runs from midnight to midnight and is divided into 24 hours, numbered from 0 to 23.
Syntax
nHTime = rollTime(num, type)
Arguments
Specifies the value that needs to be rolled.
This value can only be "h".
Return Value
Example
Returns the time three hours before the current time. For example, if it is currently 9 PM, this example returns 18, which is 6 PM on a 24-hour clock.
nHTime = rollTime(-3 ,'h')
|
Copyright © 2014 CA.
All rights reserved.
|
|