title: find the time different between the day
body: <p><a href="https://i.stack.imgur.com/rvNZx.png" rel="nofollow noreferrer">Dataframe</a>
  I have different machine running different hours that might cross over a day and I want to differentiate it on different day</p>
  <p>Example Machine A running 8 hours from Start Date and Time 12-Aug, 9pm to 13-Aug , 5am
  I cant get the correct time that 3hours from 12-Aug and 5hours from 13-Aug
  Suspect that because i'm using datetime.now
  how do it change the date will be same as Start date/ End date in python?</p>
  <p>Here is my code:</p>
  <pre><code>endoftoday = datetime.now()
  endoftoday = endoftoday.replace(hour=23,minute=59,second=59)
  
  dt['Start_Date']=dt['Start_Time'].dt.strftime('%d/%m/%Y')
  dt['End_Date']=dt['Finish_Time'].dt.strftime('%d/%m/%Y')
  
  if (dt.['Start_Date'].str == dt['End_Date'].str):
      dt['Tested_Time_Today']= endoftoday-dt['Start_Time']
      dt['Tested_Time_NextDay']= dt['Finish_Time'] - endoftoday
  </code></pre>