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

12

/trex/doc/
H A DAnalyticsWebReport.py7 import datetime namespace
12 k_days_ago = datetime.datetime.now() - datetime.timedelta(days=15)
H A DELKConnect.py4 import datetime namespace
33 time_2w_ago = datetime.date.timetuple(datetime.datetime.utcnow() - datetime.timedelta(weeks=2))
H A DTRexDataAnalysis.py12 from datetime import datetime namespace
144 float_test_time_stamps.append(matdates.date2num(datetime.strptime(ts, time_format1)))
146 float_test_time_stamps.append(matdates.date2num(datetime.strptime(ts, time_format2)))
/trex/scripts/automation/regression/
H A Dtrex.py12 import datetime namespace
55 timestamp = datetime.datetime.now() - datetime.timedelta(hours=2); # Jerusalem timeZone, Kibana does not have feature to change timezone
H A Dtrex_elk.py9 import datetime namespace
15 sim_date=datetime.datetime.now()-datetime.timedelta(hours=random.randint(0,24*30));
131 sim_date=datetime.datetime.now()-datetime.timedelta(hours=random.randint(0,24*30));
H A Daggregate_results.py10 import datetime, time namespace
108 html_output += add_th_td('Tests duration:', datetime.timedelta(seconds = int(total_duration)))
443 html_output += add_th_td('Regression start:', datetime.datetime.fromtimestamp(start_time).strftime('%d/%m/%Y %H:%M'))
444 html_output += add_th_td('Regression duration:', datetime.timedelta(seconds = total_time))
573 mail_output += add_th_td('Regression start:', datetime.datetime.fromtimestamp(start_time).strftime('%d/%m/%Y %H:%M'))
574 mail_output += add_th_td('Regression duration:', datetime.timedelta(seconds = total_time))
/trex/scripts/external_libs/elasticsearch/elasticsearch/client/
H A Dutils.py4 from datetime import date, datetime namespace
22 elif isinstance(value, (date, datetime)):
/trex/scripts/external_libs/pyzmq-14.5.0/python2/ucs2/32bit/zmq/auth/
H A Dcerts.py7 import datetime namespace
36 f.write(banner.format(datetime.datetime.now()))
61 now = datetime.datetime.now()
/trex/scripts/external_libs/pyzmq-14.5.0/python2/ucs2/64bit/zmq/auth/
H A Dcerts.py7 import datetime namespace
36 f.write(banner.format(datetime.datetime.now()))
61 now = datetime.datetime.now()
/trex/scripts/external_libs/pyzmq-14.5.0/python2/ucs4/64bit/zmq/auth/
H A Dcerts.py7 import datetime namespace
36 f.write(banner.format(datetime.datetime.now()))
61 now = datetime.datetime.now()
/trex/scripts/external_libs/pyzmq-14.5.0/python3/ucs4/32bit/zmq/auth/
H A Dcerts.py7 import datetime namespace
36 f.write(banner.format(datetime.datetime.now()))
61 now = datetime.datetime.now()
/trex/scripts/external_libs/pyzmq-14.5.0/python3/ucs4/64bit/zmq/auth/
H A Dcerts.py7 import datetime namespace
36 f.write(banner.format(datetime.datetime.now()))
61 now = datetime.datetime.now()
/trex/scripts/external_libs/elasticsearch/elasticsearch/
H A Dserializer.py6 from datetime import date, datetime namespace
28 if isinstance(data, (date, datetime)):
/trex/scripts/external_libs/python-daemon-2.0.5/daemon/
H A D_metadata.py20 import datetime namespace
130 end_date = datetime.datetime.strptime(end_date, "%Y-%m-%d")
/trex/scripts/automation/trex_control_plane/stl/trex_stl_lib/
H A Dtrex_stl_async_client.py6 import datetime namespace
23 self.last_update_ts = datetime.datetime.now()
28 self.last_update_ts = datetime.datetime.now()
61 delta_ms = (datetime.datetime.now() - self.last_update_ts).total_seconds() * 1000
/trex/scripts/external_libs/urllib3/urllib3/
H A Dconnection.py2 import datetime namespace
62 RECENT_DATE = datetime.date(2016, 1, 1)
301 is_time_off = datetime.date.today() < RECENT_DATE
/trex/scripts/external_libs/requests/requests/packages/urllib3/
H A Dconnection.py2 import datetime namespace
59 RECENT_DATE = datetime.date(2014, 1, 1)
298 is_time_off = datetime.date.today() < RECENT_DATE
/trex/scripts/external_libs/pyyaml-3.11/python3/yaml/
H A Drepresenter.py8 import datetime, sys, copyreg, types, base64 namespace
259 SafeRepresenter.add_representer(datetime.date,
262 SafeRepresenter.add_representer(datetime.datetime,
/trex/scripts/automation/regression/stateful_tests/
H A Dtrex_general_test.py42 from datetime import datetime, timedelta namespace
83 timestamp = datetime.strptime(date_str, '%b %d %Y , %H:%M:%S') - timediff
/trex/scripts/external_libs/python-daemon-2.0.5/
H A Dversion.py37 import datetime namespace
168 datetime.datetime.strptime(value, ChangeLogEntry.date_format)
/trex/scripts/external_libs/requests/requests/
H A Dsessions.py12 from datetime import datetime namespace
606 start = datetime.utcnow()
612 r.elapsed = datetime.utcnow() - start
/trex/scripts/external_libs/yaml-3.11/yaml/
H A Drepresenter.py8 import datetime namespace
282 SafeRepresenter.add_representer(datetime.date,
285 SafeRepresenter.add_representer(datetime.datetime,
/trex/scripts/python-lib/yaml/
H A Drepresenter.py8 import datetime namespace
282 SafeRepresenter.add_representer(datetime.date,
285 SafeRepresenter.add_representer(datetime.datetime,
/trex/scripts/automation/
H A Dh_avc.py10 import datetime namespace
/trex/scripts/external_libs/pyyaml-3.11/python2/yaml/
H A Drepresenter.py8 import datetime namespace
282 SafeRepresenter.add_representer(datetime.date,
285 SafeRepresenter.add_representer(datetime.datetime,

Completed in 21 milliseconds

12