What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: Time Zones + GMT

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 42386
interpreted = N
texte = Clint Davis wrote: > Since my server is located in the US Central Time Zone, I'm storing a time > zone preference in my database as the offset of Central Time (+1 for > Eastern, +0 for Central, -1 for Mountain, -2 Pacific). I need to use this > offset to calculate the correct date and time for the time zone specified by > the client in the database.Why don't you store the offsets as relative to GMT, because then you will always have a positive offset?> > I think I'm going to need to convert to GMT and back or something like that, > but I'm not sure. I want to display the results of the math as: > Weekday, Month DD, YYYY | HH:MM:am/pm. > [math time]localtime={[date %X]}+{[youroffset]:00:00}-{[offset]:00:00}[/math]Note that this will not work around midnight for anyone west of you, since you will be reporting the wrong date. Look in the archives for my MIMEHeaders.inc include file which has some convoluted logic to get this right...It would be very nice is WebDNA was extended to include GMT math, though this relies on the underlying gmtime() implementation of the O/S...John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
Clint Davis wrote: > Since my server is located in the US Central Time Zone, I'm storing a time > zone preference in my database as the offset of Central Time (+1 for > Eastern, +0 for Central, -1 for Mountain, -2 Pacific). I need to use this > offset to calculate the correct date and time for the time zone specified by > the client in the database.Why don't you store the offsets as relative to GMT, because then you will always have a positive offset?> > I think I'm going to need to convert to GMT and back or something like that, > but I'm not sure. I want to display the results of the math as: > Weekday, Month DD, YYYY | HH:MM:am/pm. > [math time]localtime={[date %X]}+{[youroffset]:00:00}-{[offset]:00:00}[/math]Note that this will not work around midnight for anyone west of you, since you will be reporting the wrong date. Look in the archives for my MIMEHeaders.inc include file which has some convoluted logic to get this right...It would be very nice is WebDNA was extended to include GMT math, though this relies on the underlying gmtime() implementation of the O/S...John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ John Peacock

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

More questions about serial number dishing (1997) unable to launch acgi in WebCat (1997) Protecting Images (2003) stats (2001) Close-to Comparison Code (1998) SMSI, your store.smithmicro.com FTP server is down .. (2004) WebDNA color code chart - oops (2002) Format question WC Mac f3 (1997) Foreign Chars (���� and so on) (1998) RE: CloseDatabase (1997) checking for [ and ] in form fields ... (1997) Hard Questions ? (1997) Is there an alternative to emailer? (1999) WebCatalog can't find database (1997) Test (2003) [SHOWIF] (1997) format problem on NT? (1997) Applescript error (1998) Running _every_ page through WebCat ? (1997) Stumpted Again (1997)