Re: Expire Cookie in 8 Hours

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58214
interpreted = N
texte = Clint Davis wrote: > On 6/4/04 8:23 AM, "John Peacock" wrote: > > >>>Takes optional parameter offset in minutes and returns current date/time in >>>GMT long format >>>Replace the {5:00:00} with your non-DST offset from GMT >>>[/!][math time&show=f]GMT={[date %X]}+{5:00:00}[showif [date >>>format=%Z]^Daylight]-{1:00:00}[/showif][/math][!] >>>[/!][math time&show=f]NOW={[date %X]}[/math][!] >>>[/!][if "[offset]"="[raw][offset][/raw]"][!] >>>[/!][then][!] >>>[/!] [math show=f]offsettime=0[/math][/then][!] >>>[/!][else][!] >>>[/!] [math show=f]offsettime=[offset]*60[/math][/else][!] >>>[/!][/if][!] > > > > So, an 8 hour offset should be fed as: > [text]offset=480[/text] (8 x 60 minutes) Why does everyone have this obsession with [text] variables? Put the file I posted somewhere you can get at it and call it like this: [include file=^Includes/GMTDate.inc&offset=480] to get an appropriately shaped bit of text that you can use for whatever purpose that you need GMT dates for. I have a global Includes folder for this exact purpose (as the example above shows). John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- 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: Expire Cookie in 8 Hours ( John Peacock 2004)
  2. Re: Expire Cookie in 8 Hours ( Clint Davis 2004)
  3. Re: Expire Cookie in 8 Hours ( John Peacock 2004)
  4. Expire Cookie in 8 Hours ( Clint Davis 2004)
Clint Davis wrote: > On 6/4/04 8:23 AM, "John Peacock" wrote: > > >>>Takes optional parameter offset in minutes and returns current date/time in >>>GMT long format >>>Replace the {5:00:00} with your non-DST offset from GMT >>>[/!][math time&show=f]GMT={[date %X]}+{5:00:00}[showif [date >>>format=%Z]^Daylight]-{1:00:00}[/showif][/math][!] >>>[/!][math time&show=f]NOW={[date %X]}[/math][!] >>>[/!][if "[offset]"="[raw][offset][/raw]"][!] >>>[/!][then][!] >>>[/!] [math show=f]offsettime=0[/math][/then][!] >>>[/!][else][!] >>>[/!] [math show=f]offsettime=[offset]*60[/math][/else][!] >>>[/!][/if][!] > > > > So, an 8 hour offset should be fed as: > [text]offset=480[/text] (8 x 60 minutes) Why does everyone have this obsession with [text] variables? Put the file I posted somewhere you can get at it and call it like this: [include file=^Includes/GMTDate.inc&offset=480] to get an appropriately shaped bit of text that you can use for whatever purpose that you need GMT dates for. I have a global Includes folder for this exact purpose (as the example above shows). John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- 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:

[WebDNA] Combining searches (2016) [WebDNA] Gratz with 6.1b1 (2008) Exporting from Excel (1998) Rendering out a page-test results (1997) Thanks for tips, more quest (1997) More on the email templates (I like it) (1997) SiteEdit NewFile.html ? (1997) Username/Password with [Protect] (2000) Size of a folder? (2003) anyone have an automated template encrypter? (2000) WebCatalog 4 Install Problems - Not Answered ?? (2000) bad time on my email was [url] issue (2000) Bug? (1997) [Listfiles] vs Netfinder (1997) cookies (2002) test (2001) orders being printed (1998) Country & Ship-to address & other fields ? (1997) NT vs Mac (1997) How flexible is Shipping? (1997)