Scalr\LogCollector\AbstractLogger::getTimestamp PHP Method

getTimestamp() public static method

Gets current timestamp in common format.
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());
    }