Beispiel #1
0
    def actual_minute(starttime_property, endtime_property):
        if endtime_property.is_empty():
            return ''

        endtime = endtime_property.get_printable_value()
        starttime = starttime_property.get_printable_value()

        hour, minute = util.diff_two_time(starttime, endtime)
        return str(minute + hour*60)
Beispiel #2
0
 def assert_(timestr1, timestr2, exph, expm):
     actualhour, actualminute = util.diff_two_time(timestr1, timestr2)
     self.assertEqual(exph, actualhour)
     self.assertEqual(expm, actualminute)