TIME WIDGET & PERIOD CALCULATOR

Posted on 23.12.2009 by Emil

My idea was to do something similar with Zapatec DHTML Time Widget but, more simple than Zapatec version. I search on internet and didn't found any other Time Widget version, so, I decide to code mine own version. There are some inputs for Start Hour and End Hour, both in Hour & Minutes, another two input fields populated automatically by javascript with values, and another field for hours diference, populated by Javascript too. The diference of hours is made only by Hours, not minutes, but if you get minutes and calculate this too, you can obtain more precision. Probably I will modify the difference math expression in the future to be more precise. Is not so cute like Zapatec is, but i like my version because is simple.

Start Time:
TimeWidget Start
End Time:
TimeWidget End
Period:

Javascript Source TimeWidget.js