Re: GMT Offset

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61716
interpreted = N
texte = Bob Minor wrote: > This is the one I like, I put it in my globals folder and can also feed > in either the offset in days or minutes to get future or past times. That looks to be a variant of the one I use for MIMEHeaders.inc. Note everyone that the technique it uses isn't completely portable either by platform or by timezone. Windows, in particular, is inconsistent in what it returns in response to the %Z format (I can't remember whether most OS's return the three letter code or the long timezone name; if M$loth implemented %z correctly as the offset for UTC, this would all be so much easier). Bob has fixed this by checking for ("[date %Z]"^"Daylight")|("[date %Z]"^"CDT") but of course, this doesn't work unless your DST zone is CDT. As an additional problem, the ISO three-letter codes are themselves not unique, but they are always "locally" unique. Consequently, you need to tweek this code for each server you install. Caveat programmer... 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: GMT Offset ( John Peacock 2005)
  2. Re: GMT Offset ( Bob Minor 2005)
  3. Re: GMT Offset ( Donovan Brooke 2005)
  4. GMT Offset ( Kenneth Grome 2005)
Bob Minor wrote: > This is the one I like, I put it in my globals folder and can also feed > in either the offset in days or minutes to get future or past times. That looks to be a variant of the one I use for MIMEHeaders.inc. Note everyone that the technique it uses isn't completely portable either by platform or by timezone. Windows, in particular, is inconsistent in what it returns in response to the %Z format (I can't remember whether most OS's return the three letter code or the long timezone name; if M$loth implemented %z correctly as the offset for UTC, this would all be so much easier). Bob has fixed this by checking for ("[date %Z]"^"Daylight")|("[date %Z]"^"CDT") but of course, this doesn't work unless your DST zone is CDT. As an additional problem, the ISO three-letter codes are themselves not unique, but they are always "locally" unique. Consequently, you need to tweek this code for each server you install. Caveat programmer... 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://webdna.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:

ImageMagick on OSX (2003) search for range (2000) Great product and great job ! (1997) WCS Newbie question (1997) Sorting Numbers (1997) Banners and sort of random display (1997) Re:2nd WebCatalog2 Feature Request (1996) Emailer setup (1997) WCS Newbie question (1997) [WebDNA] Problem with Cookies in IE and Safari (2009) using showpage and showcart commands (1996) More on the email templates (1997) [WebDNA] agree? --> [url] broken inside [redirect], on a square-bracket-style include, included from a XML-style page (2009) WebCat b13 CGI -shownext- (1997) rename a file (1997) autosensing lanague selection (1997) Timeout question .. (2003) Tea Room trouble (1997) How to add commas to number displays (2004) .eml files (2001)