Re: date()
| From: | Chris Shiflett | Date: | Fri, 14 Nov 2003 16:36:50 +0000 |
| Subject: | Re: date() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169648@lists.php.net to get a copy of this message | ||
--- Chris Mach <cjmach@gto.net> wrote:
> Does date() give the local time of the Server?
date() formats a timestamp, and it uses the current timestamp (whatever
time() would return) when you don't specify one. Yes, an incorrect server
time will give you an incorrect formatted date.
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp