Re: [WebDNA] add hours over 24

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111490
interpreted = N
texte = Sure Tom..=20 I=92ve updated the euca website.. decided it was a good idea to do this = every 10 years or so ;-) I=92ve got a lot of good use out of your code for a long time! ;-) Direct download to my function library that includes your time = management functions: http://dev.euca.us/index.html?page=3Ddev&action=3DeucaLib A test page regarding date and time options, that led to using Tom=92s = code mostly: http://dev.euca.us/admin/tests/sectodays.html (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) My old developer site: http://dev.euca.us/index.html?page=3Ddev Donovan On Jul 30, 2014, at 4:12 AM, Tom Duke wrote: > 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] add hours over 24 (Terry Wilson 2014)
  2. Re: [WebDNA] add hours over 24 (Donovan Brooke 2014)
  3. Re: [WebDNA] add hours over 24 (Tom Duke 2014)
  4. Re: [WebDNA] add hours over 24 (Steve Braun 2014)
  5. Re: [WebDNA] add hours over 24 (Stuart Tremain 2014)
  6. Re: [WebDNA] add hours over 24 (Steve Braun 2014)
  7. Re: [WebDNA] add hours over 24 (Dan Strong 2014)
  8. [WebDNA] add hours over 24 (Steve Braun 2014)
Sure Tom..=20 I=92ve updated the euca website.. decided it was a good idea to do this = every 10 years or so ;-) I=92ve got a lot of good use out of your code for a long time! ;-) Direct download to my function library that includes your time = management functions: http://dev.euca.us/index.html?page=3Ddev&action=3DeucaLib A test page regarding date and time options, that led to using Tom=92s = code mostly: http://dev.euca.us/admin/tests/sectodays.html (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) My old developer site: http://dev.euca.us/index.html?page=3Ddev Donovan On Jul 30, 2014, at 4:12 AM, Tom Duke wrote: > 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 Donovan Brooke

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:

encrypted database (2004) webcat (2000) [subTotal] pricefield in another database !? (1998) Not really WebCat (1997) Re:Variable Math (1998) .html files and Apache AuthUserFile setting (2003) # fields limited? (1997) Need help with emailer- 2 issues (1997) Webmerchant quitting (1998) Exclamation point (1997) Showif, Hideif reverse logic ? (1997) countdown to date (2003) F3 crashing server (1997) Show if time tags (1997) Just a thought (1998) WCS Newbie question (1997) Size limit for tmpl editor ? (1997) shipcost (1997) [WebDNA] WebPOP with godaddy account (2011) Custom WebCat Prefs ... (1997)