Re: Problems processing UNIX timestamps in events directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2007. 02. 21, szerda keltezéssel 09.33-kor Dave Goodchild ezt írta:
> Thanks all for your input - you're all correct, I don't really need to use
> timestamps as I am only interested in dates so will be reworking the app to
> use dates only. I still need to generate sequences of dates and really don't
> want to deal with DST, so my question is: can I add days to dates without
> converting to timestamp and adding 86400 for example. If I can it will make
> things much simpler. I am talking about doing this dynamically with php
> rather than at database level. Many thanks in advance, I will also start
> googling...
> 
> 

of course you can

use something like this:

$newdate = date("Y-m-d", mktime(0, 0, 0, $orig_month, $orig_day + 1,
$orig_year));

greets
Zoltán Németh

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux