Re: [WebDNA] unix timestamp in WebDNA

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102080
interpreted = N
texte = Here's an estimation within a few seconds: [text]timestamp=[math]((([math]{[date]}[/math])-1)*86400)+([math]{[time]}[/math])[/math][/text] [math show=f]time_now=[timestamp]*1[/math] [math show=t]Aprox_Epoch_Time=[time_now]-62167107589[/math] Marc Dana Keil wrote: > > On Feb 27, 2009, at 11:59 AM, Donovan Brooke wrote: > >> It would help if you describe your project a bit. > > Hi Donovan, > > Once I started getting answers (thanks everyone), I realized that what > I'm wanting it for isn't obvious, who would have thought my question > could be interpreted in so many different ways -- I know exactly what > I'm thinking, why doesn't everyone else ;-). > > I have a site that is currently a "hybrid" WebDNA and PHP site (for > historical reasons). I write WebDNA pages that return info to PHP when > PHP uses cURL to hit the WebDNA page (and PHP can send info to WebDNA > using cURL too, it works both ways quite nicely). > > The PHP wants to do some math on a date value that comes from WebDNA > (stored as MM/DD/YYYY in a WebDNA db) and I would like to convert that > to a unix timestamp form before passing it to PHP. If it was native > WebDNA, of course, I wouldn't care about getting it into unix timestamp > form at all. > > So the question is, does anyone have an already written function that > will take a value coming from a WebDNA db in the MM/DD/YYYY format and > turn it into a unix time number. > > -- > Dana > > -- ------------------------------------------- Marc Thompson Software Engineer Office of Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] unix timestamp in WebDNA (Donovan Brooke 2009)
  2. Re: [WebDNA] unix timestamp in WebDNA (Dana Keil 2009)
  3. Re: [WebDNA] unix timestamp in WebDNA (Dana Keil 2009)
  4. Re: [WebDNA] unix timestamp in WebDNA (Marc Thompson 2009)
  5. Re: [WebDNA] unix timestamp in WebDNA (Marc Thompson 2009)
  6. Re: [WebDNA] unix timestamp in WebDNA (Dana Keil 2009)
  7. Re: [WebDNA] unix timestamp in WebDNA (Marc Thompson 2009)
  8. Re: [WebDNA] unix timestamp in WebDNA (Donovan Brooke 2009)
  9. Re: [WebDNA] unix timestamp in WebDNA (Dana Keil 2009)
  10. Re: [WebDNA] unix timestamp in WebDNA (Donovan Brooke 2009)
  11. Re: [WebDNA] unix timestamp in WebDNA (Donovan Brooke 2009)
  12. RE: [WebDNA] unix timestamp in WebDNA ("Olin Lagon" 2009)
  13. Re: [WebDNA] unix timestamp in WebDNA (Donovan Brooke 2009)
  14. Re: [WebDNA] unix timestamp in WebDNA (Marc Thompson 2009)
  15. [WebDNA] unix timestamp in WebDNA (Dana Keil 2009)
Here's an estimation within a few seconds: [text]timestamp=[math]((([math]{[date]}[/math])-1)*86400)+([math]{[time]}[/math])[/math][/text] [math show=f]time_now=[timestamp]*1[/math] [math show=t]Aprox_Epoch_Time=[time_now]-62167107589[/math] Marc Dana Keil wrote: > > On Feb 27, 2009, at 11:59 AM, Donovan Brooke wrote: > >> It would help if you describe your project a bit. > > Hi Donovan, > > Once I started getting answers (thanks everyone), I realized that what > I'm wanting it for isn't obvious, who would have thought my question > could be interpreted in so many different ways -- I know exactly what > I'm thinking, why doesn't everyone else ;-). > > I have a site that is currently a "hybrid" WebDNA and PHP site (for > historical reasons). I write WebDNA pages that return info to PHP when > PHP uses cURL to hit the WebDNA page (and PHP can send info to WebDNA > using cURL too, it works both ways quite nicely). > > The PHP wants to do some math on a date value that comes from WebDNA > (stored as MM/DD/YYYY in a WebDNA db) and I would like to convert that > to a unix timestamp form before passing it to PHP. If it was native > WebDNA, of course, I wouldn't care about getting it into unix timestamp > form at all. > > So the question is, does anyone have an already written function that > will take a value coming from a WebDNA db in the MM/DD/YYYY format and > turn it into a unix time number. > > -- > Dana > > -- ------------------------------------------- Marc Thompson Software Engineer Office of Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Marc Thompson

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:

price carry over (1997) AOL displays strange header info (2000) Another Excel Problem (2003) questions on variations of Ken's [text (1999) Help name our technology! (1997) PCS Frames (1997) Pop-up menu (1998) Date subtraction (2002) WebDNA Writer Needed (1997) Comments in db? (1997) How To question on setting up downloads (1997) Problems searching from a FORM (1997) syntax question, not in online refernce (1997) New public beta available (1997) Re:Multiple SSL Keys (1998) WebCatalog [FoundItems] Problem - AGAIN - (1997) WebCommerce: Folder organization ? (1997) Security for malls with different webmasters (1998) PCS Frames (1997) one item in several different categories? (2000)