Re: 2 different time zones
From: Alvaro G. Vicario (kAlvaroNOSPAMTHANKS_at_terra.es)
Date: 09/29/04
- Next message: Andy Hassall: "Re: need to mass convert pages to UTF-8 encoding"
- Previous message: Pedro Graca: "Re: need to mass convert pages to UTF-8 encoding"
- In reply to: Brian: "2 different time zones"
- Next in thread: Pedro Graca: "Re: 2 different time zones"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 --
- Next message: Andy Hassall: "Re: need to mass convert pages to UTF-8 encoding"
- Previous message: Pedro Graca: "Re: need to mass convert pages to UTF-8 encoding"
- In reply to: Brian: "2 different time zones"
- Next in thread: Pedro Graca: "Re: 2 different time zones"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|