List Info

Thread: note 78448 added to function.date




note 78448 added to function.date
user name
2007-10-12 08:46:32
If you're wanting to increment a date, add twenty-FIVE hours
(yes, one day per year may last 25 hours...), and the
additional hour won't impact other days, as it's converted
to a Y-m-d string:

$date=date('Y-m-d', strtotime($date)+(25*3600));

Try this for october 28, 2007...
----
Server IP: 194.153.94.10
Probable Submitter: 83.77.43.52
----
Manual Page -- http:/
/www.php.net/manual/en/function.date.php
Edit        -- https://master
.php.net/note/edit/78448
Del: integrated  -- h
ttps://master.php.net/note/delete/78448/integrated
Del: useless     -- http
s://master.php.net/note/delete/78448/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/78448/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/78448/spam
Del: non-english -- 
https://master.php.net/note/delete/78448/non-english
Del: in docs     -- http
s://master.php.net/note/delete/78448/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78448
Reject      -- https://mast
er.php.net/note/reject/78448
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )