Page History
...
Code Block |
---|
IsAm = SRP_Time("IsAm", Time) |
Returns
The hour component of an OI time1 if the time is in the AM, 0 if it is in the PM.
Parameters
Parameter | Description |
---|---|
Time | A time in OI internal format. (REQUIRED) |
...
The "IsAm" service returns 1 if the time is in the AM or 0 if it is in the PM. If an OI time represents 12:41:08pm, this service would return 0. If the given time not valid, 0 is returned. Therefore, it might be necessary to Validate the time if you want to ensure no false negatives.
...