Re: Problems processing UNIX timestamps in events directory

From: Date: Wed, 21 Feb 2007 09:53:18 +0000
Subject: Re: Problems processing UNIX timestamps in events directory
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-249169@lists.php.net to get a copy of this message
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

« previous php.general (#249169) next »