Previous Page
locale()

Solar_Filter_SanitizeIsoTime
sanitizeIsoTime()

Next Class
Solar_Filter_SanitizeIsoTimestamp

sanitizeIsoTime()

public string sanitizeIsoTime ( string $value )

Forces the value to an ISO-8601 formatted time ("hh:ii:ss").

Parameters

  • (string) $value: The value to be sanitized. If an integer, it is used as a Unix timestamp; otherwise, converted to a Unix timestamp using strtotime().

Returns

  • (string) The sanitized value.

Description

Forces the value to an ISO-8601 formatted time ("hh:ii:ss").