Re: [PHP] timestamp confusion

2002-02-20 Thread Justin French
Okay, that's what I needed to hear... so I'll just add 61200seconds onto the timestamp, and i'll be "in the ball park". thanks to everyone, justin Scott Brown wrote: > > Seems to me that those functions expect GMT based time. > > Here in Ontario Canada, I'm GMT-5 (or -4 at some points in the

RE: [PHP] timestamp confusion

2002-02-20 Thread Martin Towell
well, just add 17 hours (17h * 60m/h * 60s/m = 61200 [aren't calculators wonderful :)] ) i guess -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 4:02 PM To: php Subject: Re: [PHP] timestamp confusion Jeff Sheltren wrote: > We

Re: [PHP] timestamp confusion

2002-02-20 Thread Justin French
Jeff Sheltren wrote: > Well, what you are missing is that those are the number of seconds *on that > machine* since 1970... so actually, if both of your clocks were set > correctly, you should be getting the *same* number returned by > time(). Hope that clears it up a little. A geez *slaps

Re: [PHP] timestamp confusion

2002-02-20 Thread Jeff Sheltren
Well, what you are missing is that those are the number of seconds *on that machine* since 1970... so actually, if both of your clocks were set correctly, you should be getting the *same* number returned by time(). Hope that clears it up a little. Jeff At 03:18 PM 2/21/2002 +1100, Justin Fr

Re: [PHP] timestamp confusion

2002-02-20 Thread Justin French
It doesn't seem to me like this is an issue... isn't the timestamp just the local unix time? It is on my LAN server. The issue I have is that echo date('d M Y H:m:s','1014261839'); produces 21 Feb 2002 14:02:59 on my LOCAL machine echo date('d M Y H:m:s','1014260440'); produces 20 Feb 2002 21:

Re: [PHP] timestamp confusion

2002-02-20 Thread Billy S Halsey
Justin, Take a look at the gettimeofday() function, which returns the timezone and daylight-savings-time values for the system. -bsh Justin French wrote: >hi, > >when people add something to a table, i'm logging the time()... later, >when I pull it out, i'm doing something like date('d M Y',$

[PHP] timestamp confusion

2002-02-20 Thread Justin French
hi, when people add something to a table, i'm logging the time()... later, when I pull it out, i'm doing something like date('d M Y',$stamp), which all works fine, printing something like "21 Jan 2002". problem is, i'm on a server in canada, but 99% of my users will be in Australia. to get an i