Home
last modified time | relevance | path

Searched refs:hours (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/external/python/dateutil/dateutil/test/
Dtest_relativedelta.py22 hours=1, minutes=1, seconds=1, microseconds=1)
25 hours=1, minutes=1, seconds=1, microseconds=1)
76 relativedelta(months=+1, days=+7, hours=+10))
136 hours=+20, minutes=+54, seconds=+47,
143 hours=+8, minutes=+54, seconds=+47,
150 hours=+12))
179 relativedelta(years=1, months=2, days=3, hours=4,
181 relativedelta(years=1, months=2, days=13, hours=4,
219 relativedelta(hours=float(0.5)),
233 relativedelta(years=1, months=2, days=3, hours=4,
[all …]
Dtest_tz.py154 EST_TUPLE = ('EST', timedelta(hours=-5), timedelta(hours=0))
155 EDT_TUPLE = ('EDT', timedelta(hours=-4), timedelta(hours=1))
208 self.assertEqual(t0_syd0.utcoffset(), timedelta(hours=11))
209 self.assertEqual(t1_syd1.utcoffset(), timedelta(hours=10))
230 self.assertEqual(t0.utcoffset(), timedelta(hours=10))
231 self.assertEqual(t1.utcoffset(), timedelta(hours=11))
253 self.assertEqual(t0_tor.utcoffset(), timedelta(hours=-4.0))
254 self.assertEqual(t1_tor.utcoffset(), timedelta(hours=-5.0))
276 self.assertEqual(t0.utcoffset(), timedelta(hours=-5.0))
277 self.assertEqual(t1.utcoffset(), timedelta(hours=-4.0))
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/testdata/
Dtestdata_en.txt83 3 hours ago
84 2 hours ago
86 0 hours
88 2 hours from now
89 3 hours from now
90 5 hours from now
91 10 hours from now
92 11 hours from now
93 12 hours from now
94 20 hours from now
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/testdata/
Dtestdata_en.txt83 3 hours ago
84 2 hours ago
86 0 hours
88 2 hours from now
89 3 hours from now
90 5 hours from now
91 10 hours from now
92 11 hours from now
93 12 hours from now
94 20 hours from now
[all …]
/external/python/dateutil/dateutil/
Drelativedelta.py93 hours=0, minutes=0, seconds=0, microseconds=0, argument
117 self.hours = 0
167 self.hours = hours
232 self.hours += div * s
233 if abs(self.hours) > 23:
234 s = _sign(self.hours)
235 div, mod = divmod(self.hours * s, 24)
236 self.hours = mod * s
243 if (self.hours or self.minutes or self.seconds or self.microseconds
282 hours_f = round(self.hours + 24 * (self.days - days), 11)
[all …]
/external/libcxx/test/std/utilities/time/time.duration/time.duration.alg/
Dabs.pass.cpp41 test(std::chrono::hours(0), std::chrono::hours(0)); in main()
45 constexpr std::chrono::hours h1 = std::chrono::abs(std::chrono::hours(-3)); in main()
47 constexpr std::chrono::hours h2 = std::chrono::abs(std::chrono::hours(3)); in main()
/external/libcxx/test/std/utilities/time/time.duration/time.duration.cast/
Dceil.pass.cpp39 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 3)); in main()
40 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-2)); in main()
46 …constexpr std::chrono::hours h1 = std::chrono::ceil<std::chrono::hours>(std::chrono::milliseconds(… in main()
48 …constexpr std::chrono::hours h2 = std::chrono::ceil<std::chrono::hours>(std::chrono::milliseconds(… in main()
Dfloor.pass.cpp38 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2)); in main()
39 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-3)); in main()
45 …constexpr std::chrono::hours h1 = std::chrono::floor<std::chrono::hours>(std::chrono::milliseconds… in main()
47 …constexpr std::chrono::hours h2 = std::chrono::floor<std::chrono::hours>(std::chrono::milliseconds… in main()
Dround.pass.cpp38 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2)); in main()
39 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-2)); in main()
45 …constexpr std::chrono::hours h1 = std::chrono::round<std::chrono::hours>(std::chrono::milliseconds… in main()
47 …constexpr std::chrono::hours h2 = std::chrono::round<std::chrono::hours>(std::chrono::milliseconds… in main()
Dduration_cast.pass.cpp38 test(std::chrono::milliseconds(7265000), std::chrono::hours(2)); in main()
50 …constexpr std::chrono::hours h = std::chrono::duration_cast<std::chrono::hours>(std::chrono::milli… in main()
/external/toybox/toys/other/
Duptime.c31 unsigned int days, hours, minutes; in uptime_main() local
54 hours = info.uptime%24; in uptime_main()
64 hours, (hours!=1)?"s":"", in uptime_main()
71 if (hours) xprintf("%2d:%02d, ", hours, minutes); in uptime_main()
/external/vogar/src/vogar/util/
DTimeUtilities.java34 long hours = duration; in msToIsoString() local
37 if (hours != 0) { in msToIsoString()
38 result.append(hours); in msToIsoString()
85 long hours = duration % 24; in nsToString() local
94 if (result.length() > 1 || hours != 0) { in nsToString()
95 result.append(hours); in nsToString()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestAll.java118 public final int hours; field in TestAll.DateDisplayBean
125 hours = (int) (m / (60 * 60 * 1000)); in DateDisplayBean()
126 if (hours > 0) { in DateDisplayBean()
127 m -= (hours * 60 * 60 * 1000); in DateDisplayBean()
139 if (hours > 0) { in toString()
140 sb.append(hours); in toString()
141 sb.append(hours > 1 ? " hours " : " hour "); in toString()
/external/libcxx/test/std/utilities/time/time.duration/time.duration.arithmetic/
Dop_++int.pass.cpp24 std::chrono::hours h1(3); in test_constexpr()
25 std::chrono::hours h2 = h1++; in test_constexpr()
33 std::chrono::hours h1(3); in main()
34 std::chrono::hours h2 = h1++; in main()
Dop_--int.pass.cpp24 std::chrono::hours h1(3); in test_constexpr()
25 std::chrono::hours h2 = h1--; in test_constexpr()
34 std::chrono::hours h1(3); in main()
35 std::chrono::hours h2 = h1--; in main()
Dop_++.pass.cpp24 std::chrono::hours h(3); in test_constexpr()
32 std::chrono::hours h(3); in main()
33 std::chrono::hours& href = ++h; in main()
Dop_--.pass.cpp24 std::chrono::hours h(3); in test_constexpr()
32 std::chrono::hours h(3); in main()
33 std::chrono::hours& href = --h; in main()
/external/libcxx/test/std/utilities/time/time.point/time.point.cast/
Dround.pass.cpp55 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2)); in main()
56 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-2)); in main()
61 test_constexpr<std::chrono::milliseconds, 9000000, std::chrono::hours, 2> (); in main()
62 test_constexpr<std::chrono::milliseconds,-9000000, std::chrono::hours, -2> (); in main()
Dceil.pass.cpp56 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 3)); in main()
57 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-2)); in main()
62 test_constexpr<std::chrono::milliseconds, 9000000, std::chrono::hours, 3> (); in main()
63 test_constexpr<std::chrono::milliseconds,-9000000, std::chrono::hours, -2> (); in main()
Dfloor.pass.cpp55 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2)); in main()
56 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-3)); in main()
61 test_constexpr<std::chrono::milliseconds, 9000000, std::chrono::hours, 2> (); in main()
62 test_constexpr<std::chrono::milliseconds,-9000000, std::chrono::hours, -3> (); in main()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/widget/
DDurationPicker.java217 double hours = minutes / 60; in setDuration() local
219 double days = hours / 24; in setDuration()
220 hours = hours % 24; in setDuration()
223 setCurrentHour((int) hours); in setDuration()
/external/openssh/
Dprogressmeter.c128 int hours, minutes, seconds; in refresh_progress_meter() local
207 hours = seconds / 3600; in refresh_progress_meter()
208 seconds -= hours * 3600; in refresh_progress_meter()
212 if (hours != 0) in refresh_progress_meter()
214 "%d:%02d:%02d", hours, minutes, seconds); in refresh_progress_meter()
/external/python/cpython3/Lib/test/libregrtest/
Dutils.py10 hours, minutes = divmod(minutes, 60)
13 if hours:
14 parts.append('%s hour' % hours)
/external/python/cpython2/Doc/includes/
Dtzinfo-examples.py4 HOUR = timedelta(hours=1)
118 def __init__(self, hours, reprname, stdname, dstname): argument
119 self.stdoffset = timedelta(hours=hours)
/external/ltp/testcases/kernel/io/disktest/
Dstats.c310 hread_time, time_struct.hours, in print_stats()
318 hwrite_time, time_struct.hours, in print_stats()
328 read_time, time_struct.hours, in print_stats()
336 write_time, time_struct.hours, in print_stats()
347 time_struct.hours, in print_stats()
356 time_struct.hours, in print_stats()
366 time_struct.days, time_struct.hours, in print_stats()

12345678910>>...12