Home
last modified time | relevance | path

Searched refs:total_seconds (Results 1 – 25 of 1752) sorted by relevance

12345678910>>...71

/dports/finance/gnucash/gnucash-4.9/libgnucash/engine/test/
H A Dgtest-gnc-timezone.cpp132 EXPECT_EQ(tz->dst_offset().total_seconds(), 1800); in TEST()
140 EXPECT_EQ(tz->dst_offset().total_seconds(), 3600); in TEST()
170 EXPECT_EQ(tz->dst_offset().total_seconds(), 3600); in TEST()
184 EXPECT_EQ(tz->dst_offset().total_seconds(), 3600); in TEST()
193 EXPECT_EQ(tz->dst_offset().total_seconds(), 3600); in TEST()
214 EXPECT_EQ(tz->base_utc_offset().total_seconds(), 6600); in TEST()
240 EXPECT_EQ(tz->dst_offset().total_seconds(), 0); in TEST()
248 EXPECT_EQ(tz->dst_offset().total_seconds(), 3600); in TEST()
261 EXPECT_EQ(tz->dst_offset().total_seconds(), -3600); in TEST()
275 EXPECT_EQ(tz->dst_offset().total_seconds(), 3600); in TEST()
[all …]
/dports/net/google-cloud-sdk/google-cloud-sdk/lib/googlecloudsdk/core/util/
H A Diso_duration.py127 self.total_seconds = 0
129 self.seconds += delta.total_seconds()
174 self.total_seconds = 0.0
183 self.total_seconds += self.seconds
222 self.total_seconds = (round(self.total_seconds, 0) +
329 total_seconds = abs(self.total_seconds)
333 if self.total_seconds < 0:
340 total_seconds -= n * _SECONDS_PER_YEAR
358 total_seconds -= n * _SECONDS_PER_DAY
368 total_seconds -= n * _SECONDS_PER_HOUR
[all …]
/dports/www/firefox-esr/firefox-91.8.0/taskcluster/taskgraph/test/
H A Dtest_util_time.py34 self.assertEqual(value_of("1s").total_seconds(), 1)
35 self.assertEqual(value_of("1 second").total_seconds(), 1)
36 self.assertEqual(value_of("1min").total_seconds(), 60)
37 self.assertEqual(value_of("1h").total_seconds(), 3600)
38 self.assertEqual(value_of("1d").total_seconds(), 86400)
39 self.assertEqual(value_of("1mo").total_seconds(), 2592000)
40 self.assertEqual(value_of("1 month").total_seconds(), 2592000)
41 self.assertEqual(value_of("1y").total_seconds(), 31536000)
44 value_of("1m").total_seconds() # ambiguous between minute and month
/dports/lang/spidermonkey60/firefox-60.9.0/taskcluster/taskgraph/test/
H A Dtest_util_time.py35 self.assertEqual(value_of('1s').total_seconds(), 1)
36 self.assertEqual(value_of('1 second').total_seconds(), 1)
37 self.assertEqual(value_of('1min').total_seconds(), 60)
38 self.assertEqual(value_of('1h').total_seconds(), 3600)
39 self.assertEqual(value_of('1d').total_seconds(), 86400)
40 self.assertEqual(value_of('1mo').total_seconds(), 2592000)
41 self.assertEqual(value_of('1 month').total_seconds(), 2592000)
42 self.assertEqual(value_of('1y').total_seconds(), 31536000)
45 value_of('1m').total_seconds() # ambiguous between minute and month
/dports/www/firefox-legacy/firefox-52.8.0esr/taskcluster/taskgraph/test/
H A Dtest_util_time.py33 self.assertEqual(value_of('1s').total_seconds(), 1)
34 self.assertEqual(value_of('1 second').total_seconds(), 1)
35 self.assertEqual(value_of('1min').total_seconds(), 60)
36 self.assertEqual(value_of('1h').total_seconds(), 3600)
37 self.assertEqual(value_of('1d').total_seconds(), 86400)
38 self.assertEqual(value_of('1mo').total_seconds(), 2592000)
39 self.assertEqual(value_of('1 month').total_seconds(), 2592000)
40 self.assertEqual(value_of('1y').total_seconds(), 31536000)
43 value_of('1m').total_seconds() # ambiguous between minute and month
/dports/lang/spidermonkey78/firefox-78.9.0/taskcluster/taskgraph/test/
H A Dtest_util_time.py35 self.assertEqual(value_of('1s').total_seconds(), 1)
36 self.assertEqual(value_of('1 second').total_seconds(), 1)
37 self.assertEqual(value_of('1min').total_seconds(), 60)
38 self.assertEqual(value_of('1h').total_seconds(), 3600)
39 self.assertEqual(value_of('1d').total_seconds(), 86400)
40 self.assertEqual(value_of('1mo').total_seconds(), 2592000)
41 self.assertEqual(value_of('1 month').total_seconds(), 2592000)
42 self.assertEqual(value_of('1y').total_seconds(), 31536000)
45 value_of('1m').total_seconds() # ambiguous between minute and month
/dports/mail/thunderbird/thunderbird-91.8.0/taskcluster/taskgraph/test/
H A Dtest_util_time.py34 self.assertEqual(value_of("1s").total_seconds(), 1)
35 self.assertEqual(value_of("1 second").total_seconds(), 1)
36 self.assertEqual(value_of("1min").total_seconds(), 60)
37 self.assertEqual(value_of("1h").total_seconds(), 3600)
38 self.assertEqual(value_of("1d").total_seconds(), 86400)
39 self.assertEqual(value_of("1mo").total_seconds(), 2592000)
40 self.assertEqual(value_of("1 month").total_seconds(), 2592000)
41 self.assertEqual(value_of("1y").total_seconds(), 31536000)
44 value_of("1m").total_seconds() # ambiguous between minute and month
/dports/biology/infernal/infernal-1.1.3/rmark/
H A Drmark-time.pl14 $total_seconds = 0;
28 $total_seconds += ($hours * 3600) + ($minutes * 60) + $seconds;
32 $total_seconds += $1;
44 $total_seconds / 3600.,
45 $total_seconds / 60.,
46 $total_seconds);
/dports/security/vault/vault-1.8.2/vendor/github.com/apache/arrow/cpp/src/arrow/python/
H A Ddatetime.h86 int64_t total_seconds = 0; in PyDateTime_to_s() local
87 total_seconds += PyDateTime_DATE_GET_SECOND(pydatetime); in PyDateTime_to_s()
88 total_seconds += PyDateTime_DATE_GET_MINUTE(pydatetime) * 60; in PyDateTime_to_s()
89 total_seconds += PyDateTime_DATE_GET_HOUR(pydatetime) * 3600; in PyDateTime_to_s()
91 return total_seconds + in PyDateTime_to_s()
124 int64_t total_seconds = 0; in PyDelta_to_s() local
125 total_seconds += PyDateTime_DELTA_GET_SECONDS(pytimedelta); in PyDelta_to_s()
126 total_seconds += PyDateTime_DELTA_GET_DAYS(pytimedelta) * 24 * 3600; in PyDelta_to_s()
127 return total_seconds; in PyDelta_to_s()
/dports/games/openomf/dumb-238f23c/dumb/examples/
H A Ddumbplay.c67 int total_seconds = ticks / 1000; in format_ms() local
73 if(total_seconds > 3600) { in format_ms()
74 hours = total_seconds / 3600; in format_ms()
75 total_seconds = total_seconds % 3600; in format_ms()
77 if(total_seconds > 60) { in format_ms()
78 minutes = total_seconds / 60; in format_ms()
79 total_seconds = total_seconds % 60; in format_ms()
81 seconds = total_seconds; in format_ms()
/dports/audio/p5-CDDB/CDDB-1.222/t/
H A D01_cddb.t73 my ($id, $track_numbers, $track_lengths, $track_offsets, $total_seconds) =
77 is($total_seconds, 344, 'total time matches');
89 my @discs = $cddb->get_discs($id, $track_offsets, $total_seconds);
147 $total_seconds = 3323;
153 @discs = $cddb->get_discs($id, \@fuzzy_offsets, $total_seconds);
162 $total_seconds = 2488;
168 @discs = $cddb->get_discs($id, \@fuzzy_offsets, $total_seconds);
/dports/net/kippo/kippo-0.9/kippo/core/
H A Dutils.py59 def uptime(total_seconds): argument
60 total_seconds = float(total_seconds)
68 days = int(total_seconds / DAY)
69 hours = int((total_seconds % DAY) / HOUR)
70 minutes = int((total_seconds % HOUR) / MINUTE)
/dports/multimedia/subsync/subsync-d9798a5/tests/
H A Dtest_subtitles.py62 assert abs(sub_offset.start.total_seconds() -
63 sub_orig.start.total_seconds() - offset) < 1e-6
64 assert abs(sub_offset.end.total_seconds() -
65 sub_orig.end.total_seconds() - offset) < 1e-6
83 start = int(round(sub.start.total_seconds() * sample_rate))
84 duration = sub.end.total_seconds() - sub.start.total_seconds()
/dports/security/py-mixbox/mixbox-1.0.5/mixbox/
H A Dbinding_utils.py166 total_seconds = tzoff.seconds + (86400 * tzoff.days)
167 if total_seconds == 0:
170 if total_seconds < 0:
172 total_seconds *= -1
175 hours = total_seconds // 3600
176 minutes = (total_seconds - (hours * 3600)) // 60
210 total_seconds = tzoff.seconds + (86400 * tzoff.days)
211 if total_seconds == 0:
214 if total_seconds < 0:
216 total_seconds *= -1
[all …]
/dports/databases/percona57-pam-for-mysql/boost_1_59_0/libs/date_time/test/posix_time/
H A Dtestduration.cpp105 std::cout << t_6.total_seconds() << std::endl; in main()
106 check("h-m-s 5-4-3 total_seconds", t_6.total_seconds() == 18243); in main()
121 check("h-m-s 5-4-3.21 total_seconds", t_9.total_seconds() == 18243); in main()
133 check("h-m-s 5-4-3.9 total_seconds", t_10.total_seconds() == 18243); in main()
148 check("total_seconds - nofrac", ms.total_seconds() == 0); in main()
154 check("total_seconds - nofrac", ms.total_seconds() == 0); in main()
172 check("check total seconds", ns2.total_seconds() == 1); in main()
190 check("total seconds 3600 hours", t_11.total_seconds() == 12960000); in main()
193 std::cout << td_12.total_seconds() << std::endl; in main()
194 check("total seconds 3723 hours", td_12.total_seconds() == 3723); in main()
[all …]
/dports/databases/mysqlwsrep57-server/boost_1_59_0/libs/date_time/test/posix_time/
H A Dtestduration.cpp105 std::cout << t_6.total_seconds() << std::endl; in main()
106 check("h-m-s 5-4-3 total_seconds", t_6.total_seconds() == 18243); in main()
121 check("h-m-s 5-4-3.21 total_seconds", t_9.total_seconds() == 18243); in main()
133 check("h-m-s 5-4-3.9 total_seconds", t_10.total_seconds() == 18243); in main()
148 check("total_seconds - nofrac", ms.total_seconds() == 0); in main()
154 check("total_seconds - nofrac", ms.total_seconds() == 0); in main()
172 check("check total seconds", ns2.total_seconds() == 1); in main()
190 check("total seconds 3600 hours", t_11.total_seconds() == 12960000); in main()
193 std::cout << td_12.total_seconds() << std::endl; in main()
194 check("total seconds 3723 hours", td_12.total_seconds() == 3723); in main()
[all …]
/dports/databases/percona57-server/boost_1_59_0/libs/date_time/test/posix_time/
H A Dtestduration.cpp105 std::cout << t_6.total_seconds() << std::endl; in main()
106 check("h-m-s 5-4-3 total_seconds", t_6.total_seconds() == 18243); in main()
121 check("h-m-s 5-4-3.21 total_seconds", t_9.total_seconds() == 18243); in main()
133 check("h-m-s 5-4-3.9 total_seconds", t_10.total_seconds() == 18243); in main()
148 check("total_seconds - nofrac", ms.total_seconds() == 0); in main()
154 check("total_seconds - nofrac", ms.total_seconds() == 0); in main()
172 check("check total seconds", ns2.total_seconds() == 1); in main()
190 check("total seconds 3600 hours", t_11.total_seconds() == 12960000); in main()
193 std::cout << td_12.total_seconds() << std::endl; in main()
194 check("total seconds 3723 hours", td_12.total_seconds() == 3723); in main()
[all …]
/dports/databases/xtrabackup/boost_1_59_0/libs/date_time/test/posix_time/
H A Dtestduration.cpp105 std::cout << t_6.total_seconds() << std::endl; in main()
106 check("h-m-s 5-4-3 total_seconds", t_6.total_seconds() == 18243); in main()
121 check("h-m-s 5-4-3.21 total_seconds", t_9.total_seconds() == 18243); in main()
133 check("h-m-s 5-4-3.9 total_seconds", t_10.total_seconds() == 18243); in main()
148 check("total_seconds - nofrac", ms.total_seconds() == 0); in main()
154 check("total_seconds - nofrac", ms.total_seconds() == 0); in main()
172 check("check total seconds", ns2.total_seconds() == 1); in main()
190 check("total seconds 3600 hours", t_11.total_seconds() == 12960000); in main()
193 std::cout << td_12.total_seconds() << std::endl; in main()
194 check("total seconds 3723 hours", td_12.total_seconds() == 3723); in main()
[all …]
/dports/databases/percona57-client/boost_1_59_0/libs/date_time/test/posix_time/
H A Dtestduration.cpp105 std::cout << t_6.total_seconds() << std::endl; in main()
106 check("h-m-s 5-4-3 total_seconds", t_6.total_seconds() == 18243); in main()
121 check("h-m-s 5-4-3.21 total_seconds", t_9.total_seconds() == 18243); in main()
133 check("h-m-s 5-4-3.9 total_seconds", t_10.total_seconds() == 18243); in main()
148 check("total_seconds - nofrac", ms.total_seconds() == 0); in main()
154 check("total_seconds - nofrac", ms.total_seconds() == 0); in main()
172 check("check total seconds", ns2.total_seconds() == 1); in main()
190 check("total seconds 3600 hours", t_11.total_seconds() == 12960000); in main()
193 std::cout << td_12.total_seconds() << std::endl; in main()
194 check("total seconds 3723 hours", td_12.total_seconds() == 3723); in main()
[all …]
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/libc/src/time/
H A Dtime_utils.cpp46 int64_t UpdateFromSeconds(int64_t total_seconds, struct tm *tm) { in UpdateFromSeconds() argument
52 if (total_seconds < 0x80000000) in UpdateFromSeconds()
54 if (total_seconds > 0x7FFFFFFF) in UpdateFromSeconds()
57 if (total_seconds < in UpdateFromSeconds()
60 total_seconds > INT_MAX * static_cast<int64_t>( in UpdateFromSeconds()
65 int64_t seconds = total_seconds - TimeConstants::SecondsUntil2000MarchFirst; in UpdateFromSeconds()
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/libc/src/time/
H A Dtime_utils.cpp46 int64_t UpdateFromSeconds(int64_t total_seconds, struct tm *tm) { in UpdateFromSeconds() argument
52 if (total_seconds < 0x80000000) in UpdateFromSeconds()
54 if (total_seconds > 0x7FFFFFFF) in UpdateFromSeconds()
57 if (total_seconds < in UpdateFromSeconds()
60 total_seconds > INT_MAX * static_cast<int64_t>( in UpdateFromSeconds()
65 int64_t seconds = total_seconds - TimeConstants::SecondsUntil2000MarchFirst; in UpdateFromSeconds()
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/libc/src/time/
H A Dtime_utils.cpp46 int64_t UpdateFromSeconds(int64_t total_seconds, struct tm *tm) { in UpdateFromSeconds() argument
52 if (total_seconds < 0x80000000) in UpdateFromSeconds()
54 if (total_seconds > 0x7FFFFFFF) in UpdateFromSeconds()
57 if (total_seconds < in UpdateFromSeconds()
60 total_seconds > INT_MAX * static_cast<int64_t>( in UpdateFromSeconds()
65 int64_t seconds = total_seconds - TimeConstants::SecondsUntil2000MarchFirst; in UpdateFromSeconds()
/dports/devel/llvm13/llvm-project-13.0.1.src/libc/src/time/
H A Dtime_utils.cpp46 int64_t UpdateFromSeconds(int64_t total_seconds, struct tm *tm) {
52 if (total_seconds < 0x80000000)
54 if (total_seconds > 0x7FFFFFFF)
57 if (total_seconds <
60 total_seconds > INT_MAX * static_cast<int64_t>(
65 int64_t seconds = total_seconds - TimeConstants::SecondsUntil2000MarchFirst; in gda_report_document_class_init()
/dports/devel/py-pendulum/pendulum-2.1.1/pendulum/
H A Dduration.py100 return self.total_seconds() / SECONDS_PER_MINUTE
103 return self.total_seconds() / SECONDS_PER_HOUR
106 return self.total_seconds() / SECONDS_PER_DAY
113 def total_seconds(self): member in Duration
193 self._invert = self.total_seconds() < 0
210 return int(self.total_seconds())
273 return timedelta(seconds=self.total_seconds())
311 return self.__class__(seconds=self.total_seconds() + other.total_seconds())
319 return self.__class__(seconds=self.total_seconds() - other.total_seconds())
456 self._total = delta.total_seconds()
[all …]
/dports/emulators/qemu42/qemu-4.2.1/roms/u-boot/cmd/
H A Dtime.c12 ulong total_seconds, remainder; in report_time() local
14 total_seconds = cycles / CONFIG_SYS_HZ; in report_time()
16 minutes = total_seconds / 60; in report_time()
17 seconds = total_seconds % 60; in report_time()

12345678910>>...71