i18n\Formatter asTimestamp()

asTimestamp() public method

Formats a date, time or datetime in a float number as UNIX timestamp (seconds since 01-01-1970).

public string asTimestamp ( $value )
$value integer|string|DateTime

The value to be formatted. The following types of value are supported:

return string

The formatted result.

doc_Yii
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.