/external/python/cpython2/Doc/includes/sqlite3/ |
H A D | adapter_datetime.py | 2 import datetime, time namespace 7 sqlite3.register_adapter(datetime.datetime, adapt_datetime) 12 now = datetime.datetime.now()
|
H A D | parse_colnames.py | 2 import datetime namespace 6 cur.execute('select ? as "x [timestamp]"', (datetime.datetime.now(),))
|
H A D | pysqlite_datetime.py | 2 import datetime namespace 8 today = datetime.date.today() 9 now = datetime.datetime.now()
|
/external/toolchain-utils/mem_tests/ |
H A D | utils.py | 4 from datetime import datetime namespace 20 timestamp = datetime(2014, int(date[0][0:2]), int(date[0][2:4]),
|
H A D | total_mem_actual.py | 14 from datetime import datetime namespace 25 base_time = datetime(2014, 6, 11, 0, 0)
|
H A D | total_mem_sampled.py | 13 from datetime import datetime namespace 22 base_time = datetime(2014, 6, 11, 0, 0)
|
/external/autotest/client/common_lib/ |
H A D | time_utils.py | 7 import datetime namespace 25 # This format is used to parse datetime value in MySQL database and should not 31 """Convert a string of time to a datetime object. 40 @return: A datetime object with time of the given date string. 45 return datetime.datetime.strptime(time_string, TIME_FMT) 47 return datetime.datetime.strptime(time_string, TIME_FMT_MICRO) 71 @param fmt_string: A string describing the format of the datetime 77 return datetime [all...] |
/external/python/cpython2/Lib/sqlite3/ |
H A D | dbapi2.py | 25 import datetime namespace 36 Date = datetime.date 38 Time = datetime.time 40 Timestamp = datetime.datetime 65 return datetime.date(*map(int, val.split("-"))) 77 val = datetime.datetime(year, month, day, hours, minutes, seconds, microseconds) 81 register_adapter(datetime.date, adapt_date) 82 register_adapter(datetime [all...] |
/external/autotest/client/tests/wb_kupdate/ |
H A D | wb_kupdate_unittest.py | 4 import datetime namespace 30 start_time=datetime.datetime.now(), 35 start_time=datetime.datetime.now(), 37 _now=datetime.datetime.now() + datetime.timedelta(seconds=60))) 60 self._wbkupdate_obj._wait_until_data_flushed(datetime.datetime [all...] |
H A D | wb_kupdate.py | 1 import datetime, logging, os, time namespace 79 @param start_time: a datetime object specifying the start time of the 89 time_diff = datetime.datetime.now() - start_time 92 return time_diff <= datetime.timedelta(seconds=duration*60) 104 @return: the time when the write completed as a datetime object. 113 write_completion_time = datetime.datetime.now() 147 @return: time waited as a datetime.timedelta object. 168 return datetime [all...] |
/external/autotest/client/cros/faft/ |
H A D | rpc_server.py | 11 from datetime import datetime namespace 26 print '[%s] XMLRPC Server: Spinning up FAFT server' % str(datetime.now()) 33 str(datetime.now()), options.port)
|
/external/autotest/client/site_tests/hardware_TPMtspi/ |
H A D | hardware_TPMtspi.py | 5 import datetime namespace 30 start_time = datetime.datetime.now() 70 end_time = datetime.datetime.now()
|
/external/autotest/client/cros/video/ |
H A D | collect_golden_images.py | 5 import argparse, common, datetime namespace 70 tmp = datetime.datetime.strptime(args.start, time_format) 71 start = datetime.timedelta(minutes=tmp.minute, seconds=tmp.second) 91 tmp = datetime.datetime.strptime(args.stop, time_format) 92 stop = datetime.timedelta(minutes=tmp.minute, seconds=tmp.second)
|
H A D | sequence_generator.py | 5 import datetime namespace 44 return [datetime.timedelta(milliseconds=x) for x in 83 return [datetime.timedelta(seconds=t) for t in randomized_time_seq]
|
/external/autotest/site_utils/sponge_lib/ |
H A D | sponge_utils_functional_test.py | 12 import datetime namespace 118 job.started_time = datetime.datetime(2016, 8, 15, 0, 0, 0) 119 job.finished_time = datetime.datetime(2016, 8, 15, 1, 0, 0) 138 test.started_time = datetime.datetime(2016, 8, 15, 0, 0, 0) 139 test.finished_time = datetime.datetime(2016, 8, 15, 1, 0, 0)
|
/external/autotest/client/bin/ |
H A D | vm_sanity.py | 15 import datetime namespace 35 start = datetime.datetime.now() 67 elapsed = datetime.datetime.now() - start
|
/external/autotest/client/site_tests/cheets_StartAndroid/ |
H A D | cheets_StartAndroid.py | 5 import datetime namespace 50 start = datetime.datetime.utcnow() 54 elapsed_time = (datetime.datetime.utcnow() - start
|
/external/autotest/site_utils/ |
H A D | count_jobs.py | 10 from datetime import datetime, timedelta namespace 29 cutoff = datetime.now() - delta
|
H A D | count_jobs_unittest.py | 7 from datetime import timedelta, datetime namespace 45 some_day = datetime.fromtimestamp(1450211914) # a time grabbed from time.time() 46 class FakeDatetime(datetime): 52 with mock.patch.object(count_jobs, 'datetime', FakeDatetime):
|
/external/clang/utils/CIndex/ |
H A D | completion_logger_server.py | 5 import datetime namespace 33 f.write("\"time\": \"{0}\"".format(datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')))
|
/external/pdfium/fpdfsdk/ |
H A D | cpdfsdk_datetime.h | 23 CPDFSDK_DateTime(const CPDFSDK_DateTime& datetime); 25 bool operator==(const CPDFSDK_DateTime& datetime) const; 26 bool operator!=(const CPDFSDK_DateTime& datetime) const;
|
/external/autotest/site_utils/rpm_control_system/ |
H A D | rpm_logging_config.py | 4 import datetime namespace 26 _suspend_start_time = datetime.datetime.now() 35 self._suspend_start_time = datetime.datetime.now() 52 if datetime.datetime.now() < (self._suspend_start_time + 53 datetime.timedelta(hours=self._suspend_time_hrs)):
|
/external/toolchain-utils/deprecated/ |
H A D | sheriff_rotation.py | 15 import datetime namespace 32 def GetWeekInfo(self, day=datetime.datetime.today()): 35 epoch = datetime.datetime.utcfromtimestamp(0) 41 week_begin = day - datetime.timedelta(days=day_of_week) 42 week_end = day + datetime.timedelta(days=(6 - day_of_week))
|
/external/autotest/client/cros/cellular/pseudomodem/ |
H A D | sms_handler.py | 5 import datetime namespace 156 timestamp = datetime.datetime.isoformat(datetime.datetime.now())
|
/external/autotest/site_utils/suite_scheduler/ |
H A D | timed_event.py | 5 import datetime namespace 48 return datetime.datetime.now() 72 since_date = self._deadline - datetime.timedelta(days=days_ago) 73 since_date = max(since_date, datetime.datetime(2017, 1, 31, 23, 0, 0)) 144 now_hour = datetime.datetime(now.year, now.month, now.day, now.hour) 146 deadline = now_hour + datetime.timedelta(hours=extra_hour) 152 self._deadline = self._deadline + datetime [all...] |