GDM/Framework/Types/Date.php
static function createFromTimestamp($timestamp, $settings = null)
    {
        $settings = is_null($settings) ? new Settings\DateSettings() : $settings;
        $dateObj  = new Date('now', $settings);
        if (is_long($timestamp)) {
            $dateObj = new Date('@'.$timestamp);
        }
        return $dateObj;
    }
static function createFromTimestamp($timestamp, $settings = null)
    {
        $settings = is_null($settings) ? new Settings\DateSettings() : $settings;
        $dateObj  = new Date('now', $settings);
        if (is_long($timestamp)) {
            $dateObj = new Date('@'.$timestamp);
        }
        return $dateObj;
    }
static function createFromTimestamp ( $ timestamp , $ settings = null ) { $ settings = is_null ( $ settings ) ? new Settings \ DateSettings ( ) : $ settings ; $ dateObj = new Date ( 'now' , $ settings ) ; if ( is_long ( $ timestamp ) ) { $ dateObj = new Date ( '@' . $ timestamp ) ; } return $ dateObj ; }
Create an instance from a timestamp

@param type $timestamp [optional] <p>Timestamp to be formatted, defaults to now</p>
@param Settings\DateSettings $settings [optional] <p>A DateSettings object representing the formats to use.
@return date
@see Settings\DefaultDateSettings
Create an instance from a timestamp