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
2016-10-30 17:06:03
Comments
Leave a Comment

Please login to continue.