Example #1
0
 def get_delta(self):
     """Calculates the timedelta of the time card block"""
     end_rounded = Dates.round_time(self.end_time)
     start_rounded = Dates.round_time(self.start_time)
     return end_rounded - start_rounded