(self)
return self.stored_time
Read timestamp from self.timeplist.

    Returns:
      datetime.datetime object from timestamp in self.timeplist
    Raises:
      ErrorReadingPlist: getplistkey failed
      ValueError: bad value from plist that doesn't match strptime
Read timestamp from self.timeplist.
Read timestamp from self . timeplist .
def ReadTimeFile(self):
    """Read timestamp from self.timeplist.

    Returns:
      datetime.datetime object from timestamp in self.timeplist
    Raises:
      ErrorReadingPlist: getplistkey failed
      ValueError: bad value from plist that doesn't match strptime
    """
    time_str = gmacpyutil.GetPlistKey(self.timeplist, PLIST_TIMESTAMP_KEY)

    if not time_str:
      raise ErrorReadingPlist('Could not read %s from %s' %
                              (PLIST_TIMESTAMP_KEY, self.timeplist))

    self.stored_time = datetime.datetime.strptime(time_str,
                                                  '%Y-%m-%d %H:%M:%S %Z')

    return self.stored_time
def ReadTimeFile ( self ) : time_str = gmacpyutil . GetPlistKey ( self . timeplist , PLIST_TIMESTAMP_KEY ) if not time_str : raise ErrorReadingPlist ( 'Could not read %s from %s' % ( PLIST_TIMESTAMP_KEY , self . timeplist ) ) self . stored_time = datetime . datetime . strptime ( time_str , '%Y-%m-%d %H:%M:%S %Z' ) return self . stored_time