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 PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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:
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 PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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:
Re2: Calculating multiple shipping... (1997)
japanese characters (1997)
Progress !! WAS: Trouble with formula.db (1997)
WebMerchant 1.6 and https (1997)
Re:2nd WebCatalog2 Feature Request (1996)
taxTotal (1997)
WebCatalog for Postcards ? (1997)
Greeting Card System (2000)
Up-date for Webcatalog 2.0 (1998)
How to set up searching - properly (2000)
Pithy questions on webcommerce & siteedit (1997)
b12 cannot limit records returned and more. (1997)
Web Catalog and Net Cloak (1998)
.XLS file problems (2008)
PCS Emailer's role ? (1997)
RE: Nesting [ListFiles] (1998)
sandbox is hogging 99% cpu cycles (2004)
Mac Vs WindowsNT (1997)
Dummy Credit Card Number for debug? (1997)
[WebDNA] WebDNA Crashing or Not **YES** (2008)