public static getTimestamp ( integer $time = null ) : string | ||
$time | integer | Unix timestamp |
return | string | Returns current timestamp in the server time zone. |
public static function getTimestamp($time = null)
{
return date(DateTime::RFC3339, $time ?: time());
}