How to sum total time passed from multiple timestamps via /r/learnprogramming


How to sum total time passed from multiple timestamps

I am making a small app for logging working time per day.

Supposedly I have a list of timestamps that span a day (form 00:00 to 23:59) as follows :

Start Stop
08:00 10:00
11:00 13:00
15:00 16:00
18:00 19:00

and many more timestamps

How to sum total passed time between Start and Stop for those timestamps.

Submitted July 13, 2017 at 06:13AM by SelfJuicing
via reddit http://ift.tt/2vfHl7p

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s