Longman\TelegramBot\DB::getTimestamp PHP Метод

getTimestamp() защищенный статический Метод

Convert from unix timestamp to timestamp
protected static getTimestamp ( integer $time = null ) : string
$time integer Unix timestamp (if null, current timestamp is used)
Результат string
    protected static function getTimestamp($time = null)
    {
        if ($time === null) {
            $time = time();
        }
        return date('Y-m-d H:i:s', $time);
    }