Skip to main content
jbarnes123
Participant
May 9, 2019
Question

How do I create a table to show calculation of hours worked in 24 hours format using PHP and JavaScript, Jquery?

  • May 9, 2019
  • 2 replies
  • 1112 views

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

This topic has been closed for replies.

2 replies

Legend
May 9, 2019

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…

jbarnes123
Participant
May 9, 2019

My apologies as I misunderstood the forum! However, thanks so much for the response and the recommendation...much appreciated.

try67
Community Expert
Community Expert
May 9, 2019

This forum is about JavaScripts in PDF files, not web-sites.

jbarnes123
Participant
May 9, 2019

Thanks for the response! I misunderstood the forum.