Searched refs:hours (Results 1 - 25 of 132) sorted by relevance

123456

/external/libcxx/test/std/utilities/time/time.duration/time.duration.literals/
H A Dliterals2.fail.cpp17 using std::chrono::hours;
19 hours foo = 4h; // should fail w/conversion operator not found
H A Dliterals1.fail.cpp17 std::chrono::hours h = 4h; // should fail w/conversion operator not found
H A Dliterals1.pass.cpp19 hours h = 4h;
20 assert ( h == hours(4));
H A Dliterals.pass.cpp22 static_assert ( std::is_same<decltype( 3h ), std::chrono::hours>::value, "" );
29 std::chrono::hours h = 4h;
30 assert ( h == std::chrono::hours(4));
H A Dliterals2.pass.cpp21 std::chrono::hours h = 4h;
22 assert ( h == std::chrono::hours(4));
/external/libcxx/test/std/utilities/time/time.duration/time.duration.arithmetic/
H A Dop_++int.pass.cpp24 std::chrono::hours h1(3);
25 std::chrono::hours h2 = h1++;
33 std::chrono::hours h1(3);
34 std::chrono::hours h2 = h1++;
H A Dop_--int.pass.cpp24 std::chrono::hours h1(3);
25 std::chrono::hours h2 = h1--;
34 std::chrono::hours h1(3);
35 std::chrono::hours h2 = h1--;
H A Dop_++.pass.cpp24 std::chrono::hours h(3);
32 std::chrono::hours h(3);
33 std::chrono::hours& href = ++h;
H A Dop_--.pass.cpp24 std::chrono::hours h(3);
32 std::chrono::hours h(3);
33 std::chrono::hours& href = --h;
/external/libcxx/test/std/utilities/time/time.duration/time.duration.alg/
H A Dabs.pass.cpp36 // 7290000ms is 2 hours, 1 minute, and 30 seconds
41 test(std::chrono::hours(0), std::chrono::hours(0));
44 // 9000000ms is 2 hours and 30 minutes
45 constexpr std::chrono::hours h1 = std::chrono::abs(std::chrono::hours(-3));
47 constexpr std::chrono::hours h2 = std::chrono::abs(std::chrono::hours(3));
/external/libcxx/test/std/utilities/time/time.duration/time.duration.cast/
H A Dceil.pass.cpp38 // 7290000ms is 2 hours, 1 minute, and 30 seconds
39 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 3));
40 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-2));
45 // 9000000ms is 2 hours and 30 minutes
46 constexpr std::chrono::hours h1 = std::chrono::ceil<std::chrono::hours>(std::chrono::milliseconds(9000000));
48 constexpr std::chrono::hours h2 = std::chrono::ceil<std::chrono::hours>(std::chrono::milliseconds(-9000000));
H A Dfloor.pass.cpp37 // 7290000ms is 2 hours, 1 minute, and 30 seconds
38 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2));
39 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-3));
44 // 9000000ms is 2 hours and 30 minutes
45 constexpr std::chrono::hours h1 = std::chrono::floor<std::chrono::hours>(std::chrono::milliseconds(9000000));
47 constexpr std::chrono::hours h2 = std::chrono::floor<std::chrono::hours>(std::chrono::milliseconds(-9000000));
H A Dround.pass.cpp37 // 7290000ms is 2 hours, 1 minute, and 30 seconds
38 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2));
39 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-2));
44 // 9000000ms is 2 hours and 30 minutes
45 constexpr std::chrono::hours h1 = std::chrono::round<std::chrono::hours>(std::chrono::milliseconds(9000000));
47 constexpr std::chrono::hours h2 = std::chrono::round<std::chrono::hours>(std::chrono::milliseconds(-9000000));
H A Dduration_cast.pass.cpp38 test(std::chrono::milliseconds(7265000), std::chrono::hours(2));
50 constexpr std::chrono::hours h = std::chrono::duration_cast<std::chrono::hours>(std::chrono::milliseconds(7265000));
/external/toybox/toys/other/
H A Duptime.c31 unsigned int days, hours, minutes; local
54 hours = info.uptime%24;
64 hours, (hours!=1)?"s":"",
71 if (hours) xprintf("%2d:%02d, ", hours, minutes);
/external/vogar/src/vogar/util/
H A DTimeUtilities.java34 long hours = duration;
37 if (hours != 0) {
38 result.append(hours);
85 long hours = duration % 24;
94 if (result.length() > 1 || hours != 0) {
95 result.append(hours);
/external/autotest/client/cros/video/
H A Dscreenshot_file_namer.py54 hours, remainder = divmod(time_delta_value.total_seconds(), 3600)
62 hours, minutes, seconds, milliseconds)
/external/libcxx/test/std/utilities/time/
H A Dhours.pass.cpp12 // typedef duration<signed integral type of at least 23 bits, ratio<3600>> hours;
20 typedef std::chrono::hours D;
/external/libcxx/test/std/utilities/time/time.point/time.point.cast/
H A Dceil.pass.cpp55 // 7290000ms is 2 hours, 1 minute, and 30 seconds
56 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 3));
57 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-2));
61 // 9000000ms is 2 hours and 30 minutes
62 test_constexpr<std::chrono::milliseconds, 9000000, std::chrono::hours, 3> ();
63 test_constexpr<std::chrono::milliseconds,-9000000, std::chrono::hours, -2> ();
H A Dfloor.pass.cpp54 // 7290000ms is 2 hours, 1 minute, and 30 seconds
55 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2));
56 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-3));
60 // 9000000ms is 2 hours and 30 minutes
61 test_constexpr<std::chrono::milliseconds, 9000000, std::chrono::hours, 2> ();
62 test_constexpr<std::chrono::milliseconds,-9000000, std::chrono::hours, -3> ();
H A Dround.pass.cpp54 // 7290000ms is 2 hours, 1 minute, and 30 seconds
55 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2));
56 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-2));
60 // 9000000ms is 2 hours and 30 minutes
61 test_constexpr<std::chrono::milliseconds, 9000000, std::chrono::hours, 2> ();
62 test_constexpr<std::chrono::milliseconds,-9000000, std::chrono::hours, -2> ();
/external/ltp/testcases/kernel/io/disktest/
H A Dsfunc.h115 time_t hours; member in struct:fmt_time
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/srt/
H A DSrtParser.java51 long hours = Long.parseLong(in.split(":")[0].trim());
56 return hours * 60 * 60 * 1000 + minutes * 60 * 1000 + seconds * 1000 + millies;
/external/python/cpython2/Lib/sqlite3/
H A Ddbapi2.py71 hours, minutes, seconds = map(int, timepart_full[0].split(":"))
77 val = datetime.datetime(year, month, day, hours, minutes, seconds, microseconds)
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/widget/
H A DDurationPicker.java27 * A view for selecting the a duration using days, hours, minutes, and seconds.
217 double hours = minutes / 60;
219 double days = hours / 24;
220 hours = hours % 24;
223 setCurrentHour((int) hours);

Completed in 518 milliseconds

123456