Re: 2 different time zones

From: Alvaro G. Vicario (kAlvaroNOSPAMTHANKS_at_terra.es)
Date: 09/29/04


Date: Wed, 29 Sep 2004 23:16:05 +0200


*** Brian escribió/wrote (Wed, 29 Sep 2004 20:54:26 GMT):
> I have 4 sites sharing an account on a server that is in the US Eastern
> time zone. 3 of those sites are for businesses/persons who live in the
> same time zone, but one is for a restaurant in the US Pacific time zone.

I believe this task is usually solved using GMT internally for all dates
and doing conversion to client time zone when printing. You have some
functions to work with Greenwich time:

gmdate - Format a GMT/UTC date/time
gmmktime - Get UNIX timestamp for a GMT date
gmstrftime - Format a GMT/UTC time/date according to locale settings

-- 
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions
--


Relevant Pages

  • Re: Postings (was Re: HP Forum location)
    ... but Google has improved the product greatly. ... o Times of last post given on thread listing page (but time zone is not ... format, ... o Home page lists alt, biz, comp, etc. ...
    (comp.os.vms)
  • Re: how to make dates without timezones?
    ... class, with a unique format on the wire, so that you don't accidentally ... after on a change in timezone. ... access/display the date it is in the same timezone that the server is ... No, make sure it is *always* treated as a specific time zone, regardless ...
    (comp.lang.java.programmer)
  • New Beta Google Groups format (was Re: comp.os.vms archives ?)
    ... Favoring the new "Google beta groups": ... o Times of last post given on thread listing page (but time zone is not ... format, ... o Home page lists alt, biz, comp, etc. ...
    (comp.os.vms)
  • Re: To Do dates stuck in 1970?
    ... "The 1970 issue is related to your date format settings. ... I tried to send you a screenshot of what happens, ... please note that my Event Time Zone keeps showing up as ... to Japan Time. ...
    (microsoft.public.mac.office.entourage)
  • Re: "clock scan" (Tcl8.5.2)
    ... But of all the funny format it handles nicely just THE internationally ... learned that Kevin Kenny did a complete overhaul of 'clock' and it ... step through the YACC grammar to find out what it was doing. ... T is a time zone indicator in the NATO system that uses letters ...
    (comp.lang.tcl)