On Thu, Aug 01, 2002 at 06:40:41PM -0400, Vertigo wrote:
> I never really noticed before last night but the time on my mud reflects
> the time of the server (obviously since it's ON the sever).  The server,
> however, is in Central Standard Time and not Eastern.  I'd prefer, for
> clarity and the fact the most of my players are on EST, to have the time
> reflect the EST time.  Is there a way to make ctime() take time zones
> into consideration or has someone written a conversion routine for it?

Just substract or add seconds on the time you're getting with time() :-)
Or do it as we did:

It is 6 o'clock am, Day of the Great Gods, 33rd the Month of the Winter Wolf.
FatalDim booted at Thu Aug  1 03:05:47 2002
Uptime is 1 days, 3 hours, 16 minutes and 52 seconds
The time in Europe          is Fri Aug  2 06:22:39 2002
The time in Australia       is Fri Aug  2 14:22:39 2002
The time in EasternUSA      is Fri Aug  2 00:22:39 2002
The time in WesternUSA      is Thu Aug  1 21:22:39 2002

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED]    |    Weblog: http://www.mavetju.org/weblog/weblog.php 
bash$ :(){ :|:&};:   | Interested in MUDs? http://www.FatalDimensions.org/

Reply via email to