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:
Sorting problem (1997)
New Title was: 5.0 pricing (2003)
Download URL & access on the fly ? (1997)
Showif -what am I missing??? (1999)
Bay Area Residents / Bay To Breakers (1998)
Problems with [Search] param - Mac Plugin b15 (1997)
make updates in a temporary database (2004)
frames & carts (1997)
Shopping carts and reloading pages (1997)
[WebDNA] [announce] Linux CICADA Build (2009)
Every other record deleted (2005)
docs for WebCatalog2 (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
Server crash (1997)
Virtual hosting and webcatNT (1997)
Modifying order output (1997)
Re WebDNA has reached it connection limit (2004)
Serving Images from SSL (was NT vs Mac) (1997)
Include a big block of text (1997)
Preloading code? (2002)