Reply to Re: [PHP] timestamp problem?

Your name:

Reply:


Posted by Richard Lynch on 02/08/05 20:36

Balu Stefan wrote:
> First of all, hello everybody,
> I am having some problems generating timestamps.
> I have a simple application, the user selects a month, a day and a year
> and submits
> it's data.
> Now, I want that date to be stransformed into a unixtimestamp. To do
> that
> I use strtotime('m/d/y') for 01 January 2011 it would be:
> strtotime('01/01/2011')
> Now, a fiew days ago, the timestamp generated by this was: 1293840000
> After a hardware failure, I reinstalled my linux with the same
> settings...
> now, a timestap of 01/01/2011 is returned as: 1293832800
> What am I doing wrong?
>
> # ls -al /etc/localtime
> lrwxrwxrwx 1 root root 36 Feb 7 19:54 /etc/localtime ->
> /usr/share/zoneinfo/Europe/Bucharest
> # date
> Tue Feb 8 13:29:15 EET 2005
> # echo $TZ
> Europe/Bucharest
> #
>
> Also mktime generates the second timestamp ...damn, I really don't know
> why there are two different
> timestamps for the same date.

As a guy who ALWAYS screws this up when building a machine...

I can't really be sure, and I clearly don't understand it, but there's
this UTC setting in the BIOS thingie thing thing, and when I mess it up
(every time) I usually end up with everything being "off" by the same
(opposite?) number of hours as my time-zone.

Maybe you did the same thing...

--
Like Music?
http://l-i-e.com/artists.htm

[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

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