Searched refs:date_str (Results 1 – 9 of 9) sorted by relevance
/external/python/cpython3/Lib/ |
D | nntplib.py | 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 604 date_str, time_str = _unparse_datetime(date, self.nntp_version < 2) [all …]
|
/external/rust/crates/rusqlite/src/types/ |
D | chrono.rs | 13 let date_str = self.format("%Y-%m-%d").to_string(); in to_sql() localVariable 14 Ok(ToSqlOutput::from(date_str)) in to_sql() 33 let date_str = self.format("%H:%M:%S%.f").to_string(); in to_sql() localVariable 34 Ok(ToSqlOutput::from(date_str)) in to_sql() 59 let date_str = self.format("%Y-%m-%dT%H:%M:%S%.f").to_string(); in to_sql() localVariable 60 Ok(ToSqlOutput::from(date_str)) in to_sql()
|
/external/python/cpython3/Lib/test/ |
D | test_nntplib.py | 619 def handle_NEWNEWS(self, group, date_str, time_str): argument 622 if (group == "comp.lang.python" and date_str == "20100913" 630 elif (group == "comp.lang.python" and date_str == "100913" 639 date_str in ('20100101', '100101') and 1422 def gives(y, M, d, h, m, s, date_str, time_str): argument 1425 (date_str, time_str)) 1427 (date_str, time_str)) 1432 def gives(y, M, d, date_str, time_str): argument 1435 (date_str, time_str)) 1437 (date_str, time_str)) [all …]
|
/external/autotest/tko/ |
D | utils_unittest.py | 40 date_str = utils.get_timestamp({"key": str_t}, "key") 41 self.assertEquals(date_int, date_str)
|
/external/toolchain-utils/llvm_tools/ |
D | upload_lexan_crashes_to_forcey.py | 77 def from_ymd(date_str: str) -> datetime.date: 78 return datetime.datetime.strptime(date_str, '%Y-%m-%d').date()
|
/external/pigweed/pw_tokenizer/py/pw_tokenizer/ |
D | tokens.py | 302 token_str, date_str, string_literal = line 305 date = (datetime.strptime(date_str, DATE_FORMAT) 306 if date_str.strip() else None)
|
/external/grpc-grpc/tools/failures/ |
D | detect_new_failures.py | 162 def parse_isodate(date_str): argument 163 return datetime.datetime.strptime(date_str, "%Y-%m-%d").date()
|
/external/python/cpython2/Modules/ |
D | datetimemodule.c | 2513 date_str(PyDateTime_Date *self) in date_str() function 2807 (reprfunc)date_str, /* tp_str */
|
/external/python/cpython3/Modules/ |
D | _datetimemodule.c | 3166 date_str(PyDateTime_Date *self) in date_str() function 3582 (reprfunc)date_str, /* tp_str */
|