Determines if the given time is a real time.

IsValid = SRP_Time("Validate", Hour, Minute, Second)

Returns

1 if the components represent an actual time of day, 0 if not.

Parameters

ParameterDescription
HourAn hour. 0 - 23. (REQUIRED)
MinuteA minute. 0 - 59. (REQUIRED)
SecondA second. 0 - 59 (REQUIRED)

Remarks

The "Validate" service determines if the the given components represent a valid time of day. If even just one component is "out of bounds," then 0 is returned.

Examples

// Validate a time
IsValid = SRP_Time("Validate", 7, 51, 43)
  • No labels