示例#1
0
文件: taskline.py 项目: shouh/tascon
    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)
示例#2
0
文件: test_util.py 项目: shouh/tascon
 def assert_(timestr1, timestr2, exph, expm):
     actualhour, actualminute = util.diff_two_time(timestr1, timestr2)
     self.assertEqual(exph, actualhour)
     self.assertEqual(expm, actualminute)