Home
last modified time | relevance | path

Searched refs:timedelta (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium-trace/trace-viewer/third_party/WebOb/webob/
Ddatetime_utils.py6 timedelta,
36 return timedelta(0)
38 return timedelta(0)
54 day = timedelta(days=1)
55 week = timedelta(weeks=1)
56 hour = timedelta(hours=1)
57 minute = timedelta(minutes=1)
58 second = timedelta(seconds=1)
60 month = timedelta(days=30)
61 year = timedelta(days=365)
[all …]
Dcookies.py11 timedelta,
218 if isinstance(v, timedelta):
232 v = timedelta(seconds=v)
233 if isinstance(v, timedelta):
446 elif isinstance(max_age, timedelta):
Dresponse.py4 timedelta,
775 if not max_age and isinstance(expires, timedelta):
914 elif isinstance(seconds, timedelta):
937 self.expires = datetime.utcnow() + timedelta(seconds=seconds)
/external/ltrace/
Dsummary.h26 struct timedelta { struct
30 struct timedelta calc_time_spent(struct timeval start); argument
32 struct timedelta spent);
Dsummary.c54 struct timedelta
69 struct timedelta ret = { diff }; in calc_time_spent()
155 summary_account_call(struct library_symbol *libsym, struct timedelta spent) in summary_account_call()
Dforward.h37 struct timedelta;
Doutput.h32 struct timedelta *spent);
Dhandle_event.c471 struct timedelta spent[proc->callstack_depth]; in account_current_callstack()
526 bool left, struct timedelta *spent) in output_syscall()
554 struct timedelta *spent) in output_syscall_right()
628 struct timedelta spent = calc_time_spent(elem->enter_time); in handle_x_sysret()
661 struct timedelta spent = calc_time_spent(elem->enter_time); in output_right_tos()
Doutput.c640 struct timedelta *spent) in output_right()
/external/chromium-trace/trace-viewer/third_party/Paste/paste/util/
Ddatetimeutil.py56 from datetime import timedelta, time, date
81 return timedelta(hours=int(val), minutes=60*(val % 1.0))
97 return timedelta(hours=hr, minutes=mi)
177 _one_day = timedelta(days=1)
238 now += timedelta(days=days)
/external/lldb/test/unittest2/test/
Dtest_assertions.py55 second = first + datetime.timedelta(seconds=10)
57 delta=datetime.timedelta(seconds=20))
59 delta=datetime.timedelta(seconds=5))
/external/chromium-trace/trace-viewer/third_party/webapp2/tests/
Dextras_i18n_test.py201 self.assertEqual(i18n.format_timedelta(datetime.timedelta(weeks=12)), u'3 mths')
204 self.assertEqual(i18n.format_timedelta(datetime.timedelta(seconds=1)), u'1 s')
206 … self.assertEqual(i18n.format_timedelta(datetime.timedelta(hours=3), granularity='day'), u'1 day')
207 … self.assertEqual(i18n.format_timedelta(datetime.timedelta(hours=23), threshold=0.9), u'1 day')
209 … self.assertEqual(i18n.format_timedelta(datetime.timedelta(hours=23), threshold=1.1), u'23 hrs')
210 …self.assertEqual(i18n.format_timedelta(datetime.datetime.now() - datetime.timedelta(days=5)), u'5 …
/external/android-clat/
Dclatd_microbenchmark.c127 double timedelta(const struct timespec tv1, const struct timespec tv2) { in timedelta() function
156 double seconds = timedelta(tv1, tv2); in benchmark()
/external/ipsec-tools/src/racoon/
Dmisc.h51 extern double timedelta __P((struct timeval *, struct timeval *));
Dmisc.c162 timedelta(t1, t2) in timedelta() function
Dalgorithm.c434 f->name, buf->l, timedelta(&start, &end));
546 f->name, key->l << 3, buf->l, timedelta(&start, &end));
575 f->name, key->l << 3, buf->l, timedelta(&start, &end));
Disakmp.c852 timedelta(&start, &end));
860 timedelta(&iph1->start, &iph1->end));
1014 timedelta(&start, &end));
1109 timedelta(&start, &end));
1232 timedelta(&start, &end));
1407 timedelta(&start, &end));
2267 timedelta(&start, &end));
Doakley.c269 timedelta(&start, &end));
316 timedelta(&start, &end));
1631 timedelta(&start, &end));
Dpfkey.c1277 "phase2", "quick", timedelta(&iph2->start, &iph2->end));
/external/chromium-trace/trace-viewer/third_party/Paste/paste/
Dsession.py183 cleanup_cycle = datetime.timedelta(seconds=15*60) #15 min
238 exp_time = datetime.timedelta(seconds=self.expiration*60)
/external/gtest/test/
Dgtest_xml_output_unittest.py197 self.assertTrue(time_delta < datetime.timedelta(seconds=600),
/external/google-breakpad/src/testing/gtest/test/
Dgtest_xml_output_unittest.py187 self.assertTrue(time_delta < datetime.timedelta(seconds=600),
/external/lldb/examples/python/
Ddisasm-stress-test.py156 print str(datetime.timedelta(seconds=remaining_time))
/external/chromium-trace/trace-viewer/third_party/WebOb/docs/
Dindex.txt230 to live in seconds (you may also use a timedelta object). The
Dreference.txt811 You can also use the `timedelta
812 <http://python.org/doc/current/lib/datetime-timedelta.html>`_

12