note 71430 deleted from function.date by tularis

From: Date: Thu, 09 Feb 2012 21:03:10 +0000
Subject: note 71430 deleted from function.date by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186020@lists.php.net to get a copy of this message
Note Submitter: ---- if you are sending your data to a database, you can just send time() and then use strftime() to turn the time() string into readable time format. check both time() and strftime() functions both offer more or less same functionality as date(). date() can also be used with time() strings to display time in the past. more or less with something like: date("j F, Y - g:ia", $data['date_quoted']) where time() = $data['date_quoted'] and time() is the exact time date when the string is executed. if this is done towards a database, the time() stored is the actual server time upon script execution, no matter the time set in the individual computer, this will record server time, unless a gmt is set in newer versions of php (5 and up).

« previous php.notes (#186020) next »