Re: [WebDNA] timestamp conversion

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 107011
interpreted = N
texte = He wants to go backwards from the timestamp to the WebDNA format. Sincerely, Kenneth Grome > The best way is to create and save the time stamp is as a > number. For example: (86400 is the seconds in 24 hours) > [text]timestamp=[math]((([math]{[date]}[/math])-1)*86400) > +([math]{[time]}[/math])[/math][/text] > > Then to display this numerical value, use WebDNA's > [format] context. To get the date: > [format days_to_date][format > .6d][math]([timestamp]/86400)+1[/math][/format][/format] > > To get the time: > [format seconds_to_time][math][timestamp]-(86400*[format > ..6d][math]([timestamp]/86400)[/math][/format])[/math][/f > ormat] OR to format is differently use > [format Seconds_To_Time %I:%M:%S %p] > > Marc > > On 7/20/2011 10:05 AM, Aaron Michael Kaczmarek wrote: > > Does anyone have a script that will generate standard > > timestamps? i.e. Wed, 08 Jun 2011 18:46:44 +0000 > > > > as well as the reverse, to convert this timestamp into > > webdna format? (this is really what I'm interested in) > > ------------------------------------------------------- > > -- This message is sent to you because you are > > subscribed to the mailing list. > > To unsubscribe, E-mail to: > > archives: http://mail.webdna.us/list/talk@webdna.us > > Bug Reporting: support@webdna.us > > . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] timestamp conversion (Aaron Michael Kaczmarek 2011)
  2. Re: [WebDNA] timestamp conversion (Kenneth Grome 2011)
  3. Re: [WebDNA] timestamp conversion (Marc Thompson 2011)
  4. Re: [WebDNA] timestamp conversion (Donovan Brooke 2011)
  5. [WebDNA] timestamp conversion (Aaron Michael Kaczmarek 2011)
He wants to go backwards from the timestamp to the WebDNA format. Sincerely, Kenneth Grome > The best way is to create and save the time stamp is as a > number. For example: (86400 is the seconds in 24 hours) > [text]timestamp=[math]((([math]{[date]}[/math])-1)*86400) > +([math]{[time]}[/math])[/math][/text] > > Then to display this numerical value, use WebDNA's > [format] context. To get the date: > [format days_to_date][format > .6d][math]([timestamp]/86400)+1[/math][/format][/format] > > To get the time: > [format seconds_to_time][math][timestamp]-(86400*[format > ..6d][math]([timestamp]/86400)[/math][/format])[/math][/f > ormat] OR to format is differently use > [format Seconds_To_Time %I:%M:%S %p] > > Marc > > On 7/20/2011 10:05 AM, Aaron Michael Kaczmarek wrote: > > Does anyone have a script that will generate standard > > timestamps? i.e. Wed, 08 Jun 2011 18:46:44 +0000 > > > > as well as the reverse, to convert this timestamp into > > webdna format? (this is really what I'm interested in) > > ------------------------------------------------------- > > -- This message is sent to you because you are > > subscribed to the mailing list. > > To unsubscribe, E-mail to: > > archives: http://mail.webdna.us/list/talk@webdna.us > > Bug Reporting: support@webdna.us > > . Kenneth Grome

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:

Newbie Help Needed (1998) OT: Google (2002) unbreakable space on windows (2008) Merry Christmas (2006) Cart # Starting at 1000 (2000) [WebDNA] Best practice re: password storage (2013) [WebDNA] find missing file in [listfiles] (2019) carriage returns in data (1997) Re:no [search] with NT (1997) RE: Emailer Set Up (1997) Hard Questions ? (1997) Nested tags count question (1997) [searchString] (1997) WebCat chatroom (1997) graphic to appear automatically... (2000) Re:listfiles-looking for slick solution (1997) autosensing lanague selection (1997) Displaying Location (1997) Problems with [Applescript] (1997) Re2: frames & carts (1997)