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. |
Please login to continue.