Backend\Core\Engine\DataGridFunctions::getDate PHP Метод

getDate() публичный статический Метод

Format a date according the users' settings
public static getDate ( integer $timestamp ) : string
$timestamp integer The UNIX-timestamp to format as a human readable date.
Результат string
    public static function getDate($timestamp)
    {
        $timestamp = (int) $timestamp;
        // if invalid timestamp return an empty string
        if ($timestamp <= 0) {
            return '';
        }
        // get user setting for long dates
        $format = Authentication::getUser()->getSetting('date_format');
        // format the date according the user his settings
        return \SpoonDate::getDate($format, $timestamp, BackendLanguage::getInterfaceLanguage());
    }