def __str__(self): return '{}: {:<5} {:<5} {:<5}'.format( self.identifier(), self.day_type, date_to_time_str(self.checkin), date_to_time_str(self.checkout) )
def day_record_to_report_line(day_record, policy): return DAY_LINE_TEMPLATE.format( day=day_record.day, day_type=day_record.day_type, checkin=date_to_time_str(day_record.checkin), checkout=date_to_time_str(day_record.checkout), worked=timedelta_to_str(day_record.worked()), balance=timedelta_to_str(policy.day_balance(day_record)), )