Solar_Filter_ValidateIsoTime::validateIsoTime()

public bool Solar_Filter_ValidateIsoTime::validateIsoTime ( mixed $value )

Validates that the value is an ISO 8601 time string (hh:ii::ss format).

Parameters

  • (mixed) $value: The value to validate.

Returns

  • (bool) True if valid, false if not.

Description

Validates that the value is an ISO 8601 time string (hh:ii::ss format).

As an alternative, the value may be an array with all of the keys for H, i, and optionally s, in which case the value is converted to an ISO 8601 string before validating it.

Per note from Chris Drozdowski about ISO 8601, allows two midnight times ... 00:00:00 for the beginning of the day, and 24:00:00 for the end of the day.



Local