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:

Request for quote (2000) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Maybe off topic but how to charge (1997) Where's Cart Created ? (1997) Formulas and Prices (2000) WebDNA 5.1 is now available! (2003) back button loses cart (2000) Zip Codes (2003) Expert tech support ... (2000) maximu values for sendmail! (1997) A little syntax help (1997) Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997) Server slowing down. (1997) [ShowNext] (1997) Getting Started (2003) wrong authentication (1998) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) can webcat create directories on NT? (1997) listcookies works only sometimes (1997) WebCat Code and WebStar Search? (2000)