Copy link to clipboard
Copied
Hi, hope I can find the help I need with a website programming project. I'm working on a new website and need to create a time table of hours worked in 24 hours format using PHP and JavaScript (Jquery). In short, the table should layout the days of the week and hours worked and be able to generate the total hours worked at the end of each day and week. EX:
Hours Worked
03:20:00
09:30:00
Total: 12:50:00
Any and all help is appreciated.
Thanks,
JB
Copy link to clipboard
Copied
This forum is about JavaScripts in PDF files, not web-sites.
Copy link to clipboard
Copied
Thanks for the response! I misunderstood the forum.
Copy link to clipboard
Copied
As stated, this forum is about Acrobat JavaScript.
However, working with time durations is actually simple Core JavaScript work. Adding durations is simple and straightforward, as you have learned in elementary school:
1. Convert all durations to the smallest unit you want to work with (in this case, minutes)
2. Add up the minutes values
3. Convert the results back to Hours and Minutes.
… and that should do it…
Copy link to clipboard
Copied
My apologies as I misunderstood the forum! However, thanks so much for the response and the recommendation...much appreciated.