note 71430 added to function.date

From: Date: Tue, 28 Nov 2006 19:26:34 +0000
Subject: note 71430 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-120131@lists.php.net to get a copy of this message
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). ---- Server IP: 216.194.113.175 Probable Submitter: 196.28.62.179 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- https://master.php.net/note/edit/71430 Del: integrated -- https://master.php.net/note/delete/71430/integrated Del: useless -- https://master.php.net/note/delete/71430/useless Del: bad code -- https://master.php.net/note/delete/71430/bad+code Del: spam -- https://master.php.net/note/delete/71430/spam Del: non-english -- https://master.php.net/note/delete/71430/non-english Del: in docs -- https://master.php.net/note/delete/71430/in+docs Del: other reasons-- https://master.php.net/note/delete/71430 Reject -- https://master.php.net/note/reject/71430 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120131) next »