示例#1
0
 def ReadSystemTime(self):
     rtc = self.GenericReadCommand(constants.READ_SYSTEM_TIME).data
     return util.ReceiverTimeToTime(struct.unpack('I', rtc)[0])
示例#2
0
 def meter_time(self):
   return util.ReceiverTimeToTime(self.data[3])
示例#3
0
 def ReadRTC(self):
     rtc = self.GenericReadCommand(constants.READ_RTC).data
     return util.ReceiverTimeToTime(struct.unpack('I', rtc)[0])
示例#4
0
 def display_time(self):
   return util.ReceiverTimeToTime(self.data[4])
示例#5
0
 def applied  (self):
   return util.ReceiverTimeToTime(self.data[3])
示例#6
0
 def entered  (self):
   return util.ReceiverTimeToTime(self.data[0])
示例#7
0
 def insertion_time(self):
   if self.data[2] == 0xFFFFFFFF:
     return self.system_time
   return util.ReceiverTimeToTime(self.data[2])
示例#8
0
 def system_time(self):
   return util.ReceiverTimeToTime(self.data[0])