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:

Any 4.5 to 5.0 upgrade gotchas? [OT] (2003) Accepting credit cards (1997) Separate SSL Server (1997) WC on Mac OS X or Mac OS X Server 2.x (2001) [Announce]: Web server security and password protection (1997) Help with Shipping Costs (1997) [delete] problem (1997) Foreign Chars ( יאצה and so on) (1998) Setting up WebCatalog with Retail Pro data (1996) still having shipCost.db Problem (1997) Extended [ConvertChars] (1997) Why is my easy [AddLineItems] NOT working?? (2000) 2 easy questions re: [showif] and [sendmail] (1997) ssl support WDNA 5.0 (2003) WebCat Admin access w/ClearlyHome p.i. (1997) Adding up weights (1998) List Address Changed! (1998) InSecureTextVariables.... (2000) Protect and Serve (1999) Emailing html (1998)