Re: Getting separate outputs with Date Functions

From: Date: Tue, 19 Feb 2013 03:37:35 +0000
Subject: Re: Getting separate outputs with Date Functions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-65924@lists.php.net to get a copy of this message
Hi! > echo date_create('@1361240634')->format('Y-m-d'); > // output: 2013-02-19 > > echo date('Y-m-d',1361240634); > // output: 2013-02-18 timestamp dates are created with UTC TZ, date() assumes your configured TZ. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#65924) next »