|
Previous Page |
Solar_Filter_ValidateIsoTimestamp |
Next Class |
validateIsoTimestamp()
public
bool
validateIsoTimestamp (
mixed $value
)
Validates that the value is an ISO 8601 timestamp string.
Parameters
- (mixed)
$value: The value to validate.
Returns
- (bool) True if valid, false if not.
Description
Validates that the value is an ISO 8601 timestamp string.
The format is "yyyy-mm-ddThh:ii:ss" (note the literal "T" in the middle, which acts as a separator -- may also be a space).
Also checks that the date itself is valid (for example, no Feb 30).