Python Forum
splitting total time between days
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
splitting total time between days
#5
Maybe I am missing something but I would start by determining whether and/or how many splits I should make (difference in days) and then split time accordingly.

>>> import datetime
>>> start = datetime.datetime(2020, 11, 5, 16, 34, 48, 753490)
>>> end = datetime.datetime(2020, 11, 6, 16, 36, 59, 753590)
>>> splits = end.day - start.day
>>> splits
1
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
splitting total time between days - by tester_V - Nov-05-2020, 01:56 AM
RE: splitting total time between days - by Larz60+ - Nov-05-2020, 02:33 AM
RE: splitting total time between days - by tester_V - Nov-05-2020, 03:32 AM
RE: splitting total time between days - by Larz60+ - Nov-05-2020, 01:31 PM
RE: splitting total time between days - by perfringo - Nov-05-2020, 02:53 PM
RE: splitting total time between days - by tester_V - Nov-05-2020, 05:23 PM
RE: splitting total time between days - by tester_V - Nov-14-2020, 04:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How split N days between specified start & end days SriRajesh 2 1,365 May-06-2022, 02:12 PM
Last Post: SriRajesh
  Split gps files based on time (text splitting) dervast 0 1,909 Nov-09-2020, 09:19 AM
Last Post: dervast
Brick How To Sum Numbers Of Next 7 Days Developer_2018 7 2,831 Oct-19-2020, 02:54 PM
Last Post: Developer_2018
  How to print n days back date at give time Mekala 1 2,006 Oct-10-2020, 03:35 AM
Last Post: bowlofred
  Time SQL Statement & Display Total anelliaf 0 1,613 Feb-28-2020, 05:55 PM
Last Post: anelliaf
  How many money in 30 days. miguelramos122 4 5,801 Dec-16-2017, 12:48 PM
Last Post: squenson
  Calculating time difference between times and splitting the HH and MM Bass 7 10,703 Jul-03-2017, 01:26 PM
Last Post: Bass
  Graphic of total different connection opened by one ip (per seconds) by time FoxModem56k 0 3,208 May-25-2017, 03:27 PM
Last Post: FoxModem56k

Forum Jump:

User Panel Messages

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