Reply to Re: subtract 1 day

Your name:

Reply:


Posted by Andy Jeffries on 04/03/06 12:02

On Mon, 03 Apr 2006 08:59:19 +0000, meltedown wrote:
>> Try doing this instead:
>>
>> $unixtime2 = strtotime("-1 day", $unixtime);
>>
>> I couldn't see what you were doing wrong in your code from a quick
>> glance, but the above way is easier to read anyway.
>>
> Thanks that really helped a lot, five minutes to fix what I've been
> banging my head against all night.

It's always the way with coding.... Glad I could help.

> Funny thing is that code worked fine
> for a year and it still works for most dates but it hit that one date and
> didn't work right.

It's very odd. I've had another quick glance at your code and still can't
see anything obviously wrong. Never mind, you've got a solution now.

Cheers,


Andy

--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация