Searched refs:datetime (Results 1 - 25 of 197) sorted by relevance

12345678

/external/python/cpython2/Doc/includes/sqlite3/
H A Dadapter_datetime.py2 import datetime, time namespace
7 sqlite3.register_adapter(datetime.datetime, adapt_datetime)
12 now = datetime.datetime.now()
H A Dparse_colnames.py2 import datetime namespace
6 cur.execute('select ? as "x [timestamp]"', (datetime.datetime.now(),))
H A Dpysqlite_datetime.py2 import datetime namespace
8 today = datetime.date.today()
9 now = datetime.datetime.now()
/external/toolchain-utils/mem_tests/
H A Dutils.py4 from datetime import datetime namespace
20 timestamp = datetime(2014, int(date[0][0:2]), int(date[0][2:4]),
H A Dtotal_mem_actual.py14 from datetime import datetime namespace
25 base_time = datetime(2014, 6, 11, 0, 0)
H A Dtotal_mem_sampled.py13 from datetime import datetime namespace
22 base_time = datetime(2014, 6, 11, 0, 0)
/external/autotest/client/common_lib/
H A Dtime_utils.py7 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 Ddbapi2.py25 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 Dwb_kupdate_unittest.py4 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 Dwb_kupdate.py1 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 Drpc_server.py11 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 Dhardware_TPMtspi.py5 import datetime namespace
30 start_time = datetime.datetime.now()
70 end_time = datetime.datetime.now()
/external/autotest/client/cros/video/
H A Dcollect_golden_images.py5 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 Dsequence_generator.py5 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 Dsponge_utils_functional_test.py12 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 Dvm_sanity.py15 import datetime namespace
35 start = datetime.datetime.now()
67 elapsed = datetime.datetime.now() - start
/external/autotest/client/site_tests/cheets_StartAndroid/
H A Dcheets_StartAndroid.py5 import datetime namespace
50 start = datetime.datetime.utcnow()
54 elapsed_time = (datetime.datetime.utcnow() - start
/external/autotest/site_utils/
H A Dcount_jobs.py10 from datetime import datetime, timedelta namespace
29 cutoff = datetime.now() - delta
H A Dcount_jobs_unittest.py7 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 Dcompletion_logger_server.py5 import datetime namespace
33 f.write("\"time\": \"{0}\"".format(datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')))
/external/pdfium/fpdfsdk/
H A Dcpdfsdk_datetime.h23 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 Drpm_logging_config.py4 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 Dsheriff_rotation.py15 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 Dsms_handler.py5 import datetime namespace
156 timestamp = datetime.datetime.isoformat(datetime.datetime.now())
/external/autotest/site_utils/suite_scheduler/
H A Dtimed_event.py5 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...]

Completed in 863 milliseconds

12345678