I'm EST time: time(0);
returns now. If I want to display west coast time: time(0) - (60 * 60 * 3); 60 seconds/minutes 60 minutes/hour times 3 hours. time(0) - 10800; Returns USA west coast. Easy way to do it. Daylight savings will screw you if you are in a DS area. -----Original Message----- From: Vertigo [mailto:[EMAIL PROTECTED] Sent: Friday, August 02, 2002 11:07 AM To: [email protected] Subject: RE: Mud Time/ctime... I added the following line into do_time: setenv( "TZ", "EST5EDT", 1); That got it set to EST with regard to EDT. I *am* interested in exactly what Edwin did with his multiple time zone output. Care to share, Edwin? Thanks, Vertigo Realm of Lanera @>-----Original Message----- @>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael @>Barton @>Sent: Friday, August 02, 2002 12:22 AM @>To: [email protected] @>Subject: Re: Mud Time/ctime... @> @>Set the TZ environment variable to EDT in the script you use to execute @>the @>mud, or within the mud code itself. You'll have to change this to EST @>when @>we go off daylight savings time, or figure out some way to do that @>automatically. @> @>[EMAIL PROTECTED] red]$ ./timetest @>Thu Aug 1 23:21:02 2002 @>[EMAIL PROTECTED] red]$ TZ=EDT ./timetest @>Fri Aug 2 04:21:07 2002 @> @>timetest was a program that just prints the output of ctime. @> @>--Palrich. @> @>----- Original Message ----- @>From: "Vertigo" <[EMAIL PROTECTED]> @>To: <[email protected]> @>Sent: Thursday, August 01, 2002 5:40 PM @>Subject: Mud Time/ctime... @> @> @>> 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? @> @> @> @>-- @>ROM mailing list @>[email protected] @>http://www.rom.org/cgi-bin/mailman/listinfo/rom -- ROM mailing list [email protected] http://www.rom.org/cgi-bin/mailman/listinfo/rom

