Re: [WebDNA] add hours over 24
This WebDNA talk-list message is from 2014
It keeps the original formatting.
numero = 111494
interpreted = N
texte = Some years ago I also put up a test page to better understand what =happens:http://terryfic.com/datemath.htmlOn Jul 30, 2014, at 7:08 AM, Donovan Brooke
wrote:> Sure Tom..=20> I=92ve updated the euca website.. decided it was a good idea to do =this every 10 years or so ;-)>=20> I=92ve got a lot of good use out of your code for a long time! ;-)>=20> Direct download to my function library that includes your time =management functions:> http://dev.euca.us/index.html?page=3Ddev&action=3DeucaLib>=20> A test page regarding date and time options, that led to using Tom=92s =code mostly:> http://dev.euca.us/admin/tests/sectodays.html>=20> (note, I do some manual calculations for leap year on those test pages =(for addition reasons).. but there is probably a better way of doing =that.. ie. having the WebDNA Engine=92s DATE tag do it automatically)>=20> My old developer site:> http://dev.euca.us/index.html?page=3Ddev>=20>=20> Donovan>=20>=20>=20>=20>=20> On Jul 30, 2014, at 4:12 AM, Tom Duke wrote:>=20>> Steve,>>=20>> You should probably be using epoch time, i.e. seconds since 1970, for =the timestamps and then running calculations from there.>>=20>> So the timestamp code is: =20>>=20>> =[math]((([math]{[date]}[/math])-1)*86400)+([math]{[time]}[/math])[/math]>>=20>> you can then add / delete seconds from that.>>=20>> Donovan had a bunch of functions for this, he posted the text below =back in 2010. The link to the functions isn't working, maybe Donovan =you could post a fixed link?>>=20>> - Tom>>=20>>=20>>=20>> Here's my reference.>> http://www.euca.us/admin/tests/sectodays.html>>=20>> It's also in my function lib. converted to an easier to use>> format, Euca Standard WebDNA Extensions V.2.1:>>=20>> http://www.euca.us/index.html?page=3Ddev>>=20>>=20>>=20>>=20>>=20>> --------------------------------------------------------- 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>=20> ---------------------------------------------------------> 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:
Some years ago I also put up a test page to better understand what =happens:http://terryfic.com/datemath.htmlOn Jul 30, 2014, at 7:08 AM, Donovan Brooke wrote:> Sure Tom..=20> I=92ve updated the euca website.. decided it was a good idea to do =this every 10 years or so ;-)>=20> I=92ve got a lot of good use out of your code for a long time! ;-)>=20> Direct download to my function library that includes your time =management functions:> http://dev.euca.us/index.html?page=3Ddev&action=3DeucaLib>=20> A test page regarding date and time options, that led to using Tom=92s =code mostly:> http://dev.euca.us/admin/tests/sectodays.html>=20> (note, I do some manual calculations for leap year on those test pages =(for addition reasons).. but there is probably a better way of doing =that.. ie. having the WebDNA Engine=92s DATE tag do it automatically)>=20> My old developer site:> http://dev.euca.us/index.html?page=3Ddev>=20>=20> Donovan>=20>=20>=20>=20>=20> On Jul 30, 2014, at 4:12 AM, Tom Duke wrote:>=20>> Steve,>>=20>> You should probably be using epoch time, i.e. seconds since 1970, for =the timestamps and then running calculations from there.>>=20>> So the timestamp code is: =20>>=20>> =[math]((([math]{[date]}[/math])-1)*86400)+([math]{[time]}[/math])[/math]>>=20>> you can then add / delete seconds from that.>>=20>> Donovan had a bunch of functions for this, he posted the text below =back in 2010. The link to the functions isn't working, maybe Donovan =you could post a fixed link?>>=20>> - Tom>>=20>>=20>>=20>> Here's my reference.>> http://www.euca.us/admin/tests/sectodays.html>>=20>> It's also in my function lib. converted to an easier to use>> format, Euca Standard WebDNA Extensions V.2.1:>>=20>> http://www.euca.us/index.html?page=3Ddev>>=20>>=20>>=20>>=20>>=20>> --------------------------------------------------------- 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>=20> ---------------------------------------------------------> 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
Terry Wilson
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:
Universal root for WC errors? (1997)
What abobut variables named max ??? (2000)
price totals (2003)
Another new bug found ... (2000)
ShowNext (1997)
[WriteFile] problems (1997)
Not really WebCat (1997)
[Replace] (2000)
Ampersand (1997)
[Very OT] Cards (2004)
Grouping search fields, etc. (1997)
NT Version on IIS 4.0 (1997)
Date Formats (1997)
autosensing lanague selection (1997)
no global [username] or [password] displayed ... (1997)
Associative lookup style? + bit more (1997)
search double negative comparison (2001)
formatting dates from a field ... (1997)
Setting up WebCatalog with Retail Pro data (1996)
tab as word delimiter (2000)