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:

Assigning new CART number (1997) Prices Dropped (1998) Deleting Orders (1997) too many nested tags ... (1997) Is [thisurl] http or https? (1998) Email template names (1997) WebMerchant/PayFlowPro (2003) Secure server question (1997) Dates (1998) Searching by Date Comparison (2000) [WebDNA] HMAC-SHA1 Encryption (2013) New Problem (1997) For those of you not on the WebCatalog Beta... (1997) Re:Need help... (1997) Windows 2.1b4 WebCatalog available (1997) when is date system date or order date? (1997) detecting if var is blank? (2007) Help name our technology! I found it (1997) Re:2nd WebCatalog2 Feature Request (1996) Grant, please help me ... (1997)