Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
May 09, 2019 May 09, 2019

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

TOPICS
Acrobat SDK and JavaScript , Windows
963
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 09, 2019 May 09, 2019

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 09, 2019 May 09, 2019

Thanks for the response! I misunderstood the forum.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 09, 2019 May 09, 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…

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 09, 2019 May 09, 2019
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines