Posted: Thu Jan 28, 1999 11:25 am Post subject: RE: time
I think i didnt understand your question but here goes anyway
If you have the GMT time of the server, Why not simply take the GMT time and add or substruct the GMT Delta of your location?
For example, Israel is GMT + 0200. I can know the time in israel even if my server is in the USA. I simply take the GMT time from the server, add 2 and have the time in Israel.
Posted: Thu Jan 28, 1999 8:52 pm Post subject: RE: time
Right that makes sense but will this work when GMT is on the next day? So if it is Thursday locally and it is already Friday GMT, will subtracting the difference in hours also set the day back? Perhaps you could show me exactly what your PHP looks like. I'm fairly new at this. Thanks!
Posted: Fri Jan 29, 1999 9:02 pm Post subject: RE: time
GMT relates to time, not date. If you wish to get the full date and time you can simply check the timestamp diffrance between your computer and the server, take the timestamp from the server, deduct the diffrence and translate the timestamp back into the date and time of where you are now.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum