• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
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

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

TOPICS
Acrobat SDK and JavaScript , Windows

Views

869

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Thanks for the response! I misunderstood the forum.

Votes

Translate

Translate

Report

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

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…

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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