Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
time
#1
I am working on a problem to figure out how many hours/minutes someone works. I have the total amount of minutes figured out including deducting the time for lunch. How do I convert say 503 minutes into 8 hours, 23 minutes. or 8:23. I have it in visual logic so far so I cant post the code yet. Thank you for help.

my code here
Reply
#2
just a hint, as we won't do it for you
>>> divmod(503, 60)
(8, 23)
https://docs.python.org/3/library/functions.html#divmod
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020