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:

Forms Search Questions (1997) international time (1997) Supressing Error Messages (1998) all records returned. (1997) Date Sorting (1997) 2.0Beta Command Ref (can't find this instruction) (1997) [WebDNA] paypal FINALLY!!!! (2009) PCS Frames (1997) New Web Site Developers Database (1996) FREE Web Server Monitor FREE (1997) authorizenet and netscape (2002) [WebDNA] Clean URLS job - will pay (2010) Closing Databases (1998) Re(9): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998) WebCat2 - [SendNews] (1997) [WebDNA] version 7.1 on ubuntu apache2 virtual host config (2014) problems with WebCat-Plugin (1997) creating a ShipCosts database (1997) Emailer tracking (1997) wish list (2002)