Lines Matching refs:date_str
232 def _parse_datetime(date_str, time_str=None): argument
238 time_str = date_str[-6:]
239 date_str = date_str[:-6]
243 year = int(date_str[:-4])
244 month = int(date_str[-4:-2])
245 day = int(date_str[-2:])
274 date_str = "{0:02d}{1.month:02d}{1.day:02d}".format(y, dt)
276 date_str = "{0:04d}{1.month:02d}{1.day:02d}".format(y, dt)
277 return date_str, time_str
575 date_str, time_str = _unparse_datetime(date, self.nntp_version < 2)
576 cmd = 'NEWGROUPS {0} {1}'.format(date_str, time_str)
592 date_str, time_str = _unparse_datetime(date, self.nntp_version < 2)
593 cmd = 'NEWNEWS {0} {1} {2}'.format(group, date_str, time_str)