Lines Matching refs:date_time
380 def append(self, mailbox, flags, date_time, message): argument
395 if date_time:
396 date_time = Time2Internaldate(date_time)
398 date_time = None
403 return self._simple_command(name, mailbox, flags, date_time)
1469 def Time2Internaldate(date_time): argument
1481 if isinstance(date_time, (int, float)):
1482 dt = datetime.fromtimestamp(date_time,
1484 elif isinstance(date_time, tuple):
1486 gmtoff = date_time.tm_gmtoff
1489 dst = date_time[8]
1491 dst = time.localtime(time.mktime(date_time))[8]
1496 dt = datetime(*date_time[:6], tzinfo=timezone(delta))
1497 elif isinstance(date_time, datetime):
1498 if date_time.tzinfo is None:
1500 dt = date_time
1501 elif isinstance(date_time, str) and (date_time[0],date_time[-1]) == ('"','"'):
1502 return date_time # Assume in correct format