Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

ParameterDescription
TimeA 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.

...