Home
last modified time | relevance | path

Searched refs:dt2 (Results 1 – 25 of 2348) sorted by relevance

12345678910>>...94

/dports/editors/calligraplan/calligraplan-3.3.0/src/libs/kernel/tests/
H A DDateTimeTester.cpp81 QVERIFY((dt2-d) == dt1); in subtractMillisecond()
89 QVERIFY((dt1-d) == dt2); in subtractMillisecond()
152 DateTime dt2 = dt1; in timeZones() local
153 qDebug()<<dt1<<dt2; in timeZones()
157 qDebug()<<dt2; in timeZones()
161 qDebug()<<dt1<<dt2; in timeZones()
163 QCOMPARE(dt2, dt1); in timeZones()
166 qDebug()<<dt1<<dt2; in timeZones()
169 dt2 = dt2 - Duration(1, 0, 0, 0, 0); in timeZones()
170 qDebug()<<dt1<<dt2; in timeZones()
[all …]
H A DAppointmentIntervalTester.cpp86 lst.add(dt1, dt2, load); in addInterval()
95 lst.add(dt1, dt2, load); in addInterval()
239 lst.add(dt1, dt2, load); in addInterval()
266 lst.add(dt1, dt2, load); in addInterval()
296 lst.add(dt1, dt2, load); in addInterval()
326 lst.add(dt1, dt2, load); in addInterval()
356 lst.add(dt1, dt2, load); in addInterval()
386 lst.add(dt1, dt2, load); in addInterval()
412 lst.add(dt1, dt2, load); in addInterval()
564 lst1.add(dt2, dt2.addDays(1), load); // after in subtractList()
[all …]
/dports/lang/ruby26/ruby-2.6.9/test/date/
H A Dtest_date.rb72 dt2 = dt + 1
74 dt2 = dt - 1
76 dt2 = dt >> 1
78 dt2 = dt << 1
80 dt2 = dt.succ
82 dt2 = dt.next
84 dt2 = dt.italy
86 dt2 = dt.england
88 dt2 = dt.julian
90 dt2 = dt.gregorian
[all …]
/dports/net/kalarmcal/kalarmcal-21.12.3/src/
H A Ddatetime.h271 inline bool operator!=(const DateTime &dt1, const DateTime &dt2)
273 return !operator==(dt1, dt2);
277 return !operator==(dt1, dt2);
288 return operator<(DateTime(dt1), dt2);
296 inline bool operator>(const DateTime &dt1, const DateTime &dt2)
298 return operator<(dt2, dt1);
302 return operator<(dt2, DateTime(dt1));
312 return !operator<(dt1, dt2);
316 return !operator<(DateTime(dt1), dt2);
326 return !operator<(dt2, dt1);
[all …]
/dports/net/libyang/libyang-1.0.240/tests/api/
H A Dtest_tree_data_dup.c28 struct lyd_node *dt2; member
59 lyd_free(st->dt2); in teardown_f()
89 st->dt2 = lyd_dup_to_ctx(st->dt1, 1, st->ctx2); in test_dup_to_ctx()
90 assert_ptr_equal(st->dt2, NULL); in test_dup_to_ctx()
99 st->dt2 = lyd_dup_to_ctx(st->dt1, 1, st->ctx2); in test_dup_to_ctx()
100 assert_ptr_not_equal(st->dt2, NULL); in test_dup_to_ctx()
137 st->dt2 = lyd_dup_to_ctx(st->dt1, 1, st->ctx2); in test_dup_to_ctx_bits()
138 assert_ptr_not_equal(st->dt2, NULL); in test_dup_to_ctx_bits()
166 lyd_print_mem(&printed, st->dt2, LYD_XML, 0); in test_dup_to_ctx_bits()
195 assert_ptr_not_equal(st->dt2, NULL); in test_dup_to_ctx_leafrefs()
[all …]
/dports/databases/py-sqlobject/SQLObject-1.6.0/sqlobject/tests/
H A Dtest_datetime.py63 assert dt2.col1.year == _now.year
64 assert dt2.col1.month == _now.month
65 assert dt2.col1.day == _now.day
66 assert dt2.col1.hour == _now.hour
71 assert dt2.col2.year == _now.year
72 assert dt2.col2.month == _now.month
73 assert dt2.col2.day == _now.day
79 assert dt2.col2.hour == 0
80 assert dt2.col2.minute == 0
81 assert dt2.col2.second == 0
[all …]
/dports/editors/texmaker/texmaker-5.0.3/pdfium/xfa/fgas/localization/
H A Dfgas_datetime.h273 const CFX_DateTime& dt2) {
275 dt.FromUnitime(dt1.ToUnitime() + dt2.ToUnitime());
279 const FX_DATETIME& dt2) {
285 const CFX_DateTime& dt2) {
291 const CFX_DateTime& dt2) {
293 dt.FromUnitime(dt1.ToUnitime() - dt2.ToUnitime());
297 const FX_DATETIME& dt2) {
335 return dt1.ToUnitime() > dt2.ToUnitime();
344 return dt1.ToUnitime() >= dt2.ToUnitime();
353 return dt1.ToUnitime() < dt2.ToUnitime();
[all …]
/dports/devel/p5-DateTime/DateTime-1.54/t/
H A D38local-subtract.t17 my $dt2 = DateTime->new(
91 my $dt2 = DateTime->new(
113 my $dt2 = DateTime->new(
143 my $dt2 = DateTime->new(
158 DateTime->compare( $dt2->subtract_duration($dur), $dt2 ), 0,
172 my $dt2 = DateTime->new(
221 my $dt2 = DateTime->new(
253 my $dt2 = DateTime->new(
270 'dt1 + dur = dt2'
301 'dt2 + dur2 != dt1'
[all …]
/dports/devel/p5-DateTime/DateTime-1.54/xt/author/
H A Dpp-38local-subtract.t21 my $dt2 = DateTime->new(
95 my $dt2 = DateTime->new(
117 my $dt2 = DateTime->new(
147 my $dt2 = DateTime->new(
162 DateTime->compare( $dt2->subtract_duration($dur), $dt2 ), 0,
176 my $dt2 = DateTime->new(
225 my $dt2 = DateTime->new(
257 my $dt2 = DateTime->new(
274 'dt1 + dur = dt2'
305 'dt2 + dur2 != dt1'
[all …]
/dports/databases/p5-DBIWrapper/libdbiwrapper-perl-0.30/t/libs/DBIWrapper/Time/Now/HiRes/
H A DTest.pm34 my $dt2 = DateTime::HiRes->now;
35 $dt2->set_time_zone('America/Phoenix');
38 my $duration = $dt1->subtract_datetime_absolute($dt2);
76 my $dt2 = DBIWrapper::Time::Now::HiRes->new();
106 my $dt2 = DBIWrapper::Time::Now::HiRes->new();
107 my $duration = $dt1->subtract_datetime_absolute($dt2);
120 my $dt2 = DBIWrapper::Time::Now::HiRes->new();
121 my $duration = $dt1->subtract_datetime_absolute($dt2);
129 my $dt2 = DateTime::HiRes->now;
131 my $duration = $dt1->subtract_datetime_absolute($dt2);
[all …]
/dports/devel/poco/poco-1.10.1-all/Foundation/testsuite/src/
H A DLocalDateTimeTest.cpp109 LocalDateTime dt4(dt2); in testConversions()
278 assertTrue (dt1 < dt2); in testRelational1()
280 assertTrue (dt2 > dt1); in testRelational1()
300 assertTrue (dt1 < dt2); in testRelational2()
302 assertTrue (dt2 > dt1); in testRelational2()
321 Timespan s = dt2 - dt1; in testArithmetics1()
339 Timespan s = dt2 - dt1; in testArithmetics2()
357 assertTrue (dt1 < dt2); in testSwap()
358 dt1.swap(dt2); in testSwap()
407 LocalDateTime dt2; in testTimezone() local
[all …]
/dports/devel/p5-DateTime-Fiscal-Year/DateTime-Fiscal-Year-0.02/t/
H A D03advance.t10 my $dt2 = DateTime->new(year => 2003, month=> 02, day=>01);
14 is( $fiscal->day_of_fiscal_year( $dt2 ), 1, 'Feb 1 as day 1 non-leap' );
22 my $dt2 = DateTime->new(year => 2003, month=> 02, day=>28);
26 is( $fiscal->day_of_fiscal_year( $dt2 ), 28, 'Feb 28 as day 28 non leap' );
33 my $dt2 = DateTime->new(year => 2004, month=> 02, day=>29);
37 is( $fiscal->day_of_fiscal_year( $dt2 ), 29, 'Feb 29 as day 29 leap' );
44 my $dt2 = DateTime->new(year => 2003, month=> 03, day=>01);
55 my $dt2 = DateTime->new(year => 2004, month=> 03, day=>01);
59 is( $fiscal->day_of_fiscal_year( $dt2 ), 30, 'Mar 1 as day 30 leap' );
66 my $dt2 = DateTime->new(year => 2004, month=> 01, day=>31);
[all …]
/dports/databases/mariadb105-client/mariadb-10.5.15/storage/columnstore/columnstore/utils/funcexp/
H A Dfunc_timestampdiff.cpp54 DateTime dt1, dt2; in getIntVal() local
88 dt2.year = m_time.year; in getIntVal()
89 dt2.month = m_time.month; in getIntVal()
90 dt2.day = m_time.day; in getIntVal()
91 dt2.hour = m_time.hour; in getIntVal()
92 dt2.minute = m_time.minute; in getIntVal()
93 dt2.second = m_time.second; in getIntVal()
101 dt2.month = (val2 >> 44) & 0xf; in getIntVal()
102 dt2.day = (val2 >> 38) & 0x3f; in getIntVal()
103 dt2.hour = (val2 >> 32) & 0x3f; in getIntVal()
[all …]
H A Dfunctor.cpp188 int64_t Func::addTime(DateTime& dt1, Time& dt2) in addTime() argument
206 dt2.second--; in addTime()
215 dt2.minute--; in addTime()
224 dt2.hour--; in addTime()
231 dt2.day = hour / 24; in addTime()
238 dt2.day--; in addTime()
245 day = (signed)(dt1.day + dt2.day); in addTime()
296 int64_t Func::addTime(Time& dt1, Time& dt2) in addTime() argument
312 dt2.second--; in addTime()
321 dt2.minute--; in addTime()
[all …]
/dports/databases/mariadb105-server/mariadb-10.5.15/storage/columnstore/columnstore/utils/funcexp/
H A Dfunc_timestampdiff.cpp54 DateTime dt1, dt2; in getIntVal() local
88 dt2.year = m_time.year; in getIntVal()
89 dt2.month = m_time.month; in getIntVal()
90 dt2.day = m_time.day; in getIntVal()
91 dt2.hour = m_time.hour; in getIntVal()
92 dt2.minute = m_time.minute; in getIntVal()
93 dt2.second = m_time.second; in getIntVal()
101 dt2.month = (val2 >> 44) & 0xf; in getIntVal()
102 dt2.day = (val2 >> 38) & 0x3f; in getIntVal()
103 dt2.hour = (val2 >> 32) & 0x3f; in getIntVal()
[all …]
H A Dfunctor.cpp188 int64_t Func::addTime(DateTime& dt1, Time& dt2) in addTime() argument
206 dt2.second--; in addTime()
215 dt2.minute--; in addTime()
224 dt2.hour--; in addTime()
231 dt2.day = hour / 24; in addTime()
238 dt2.day--; in addTime()
245 day = (signed)(dt1.day + dt2.day); in addTime()
296 int64_t Func::addTime(Time& dt1, Time& dt2) in addTime() argument
312 dt2.second--; in addTime()
321 dt2.minute--; in addTime()
[all …]
/dports/multimedia/gstreamer1/gstreamer-1.16.2/tests/check/gst/
H A Dgstdatetime.c387 GstDateTime *dt, *dt2; in GST_START_TEST() local
410 fail_unless (date_times_are_equal (dt, dt2)); in GST_START_TEST()
411 str2 = gst_date_time_to_iso8601_string (dt2); in GST_START_TEST()
414 gst_date_time_unref (dt2); in GST_START_TEST()
435 gst_date_time_unref (dt2); in GST_START_TEST()
457 gst_date_time_unref (dt2); in GST_START_TEST()
480 gst_date_time_unref (dt2); in GST_START_TEST()
505 gst_date_time_unref (dt2); in GST_START_TEST()
530 gst_date_time_unref (dt2); in GST_START_TEST()
555 gst_date_time_unref (dt2); in GST_START_TEST()
[all …]
/dports/x11-toolkits/gtk40/gtk-4.4.1/testsuite/gtk/
H A Dcalendar.c9 GDateTime *dt2; in test_calendar_set_day() local
24 dt2 = gtk_calendar_get_date (GTK_CALENDAR (cal)); in test_calendar_set_day()
25 g_assert_true (g_date_time_equal (dt, dt2)); in test_calendar_set_day()
28 g_date_time_unref (dt2); in test_calendar_set_day()
36 GDateTime *dt2; in test_calendar_properties() local
46 dt2 = gtk_calendar_get_date (GTK_CALENDAR (cal)); in test_calendar_properties()
47 g_assert_cmpint (g_date_time_get_year (dt2), ==, 1970); in test_calendar_properties()
48 g_assert_cmpint (g_date_time_get_month (dt2), ==, 3); in test_calendar_properties()
49 g_assert_cmpint (g_date_time_get_day_of_month (dt2), ==, 1); in test_calendar_properties()
51 g_date_time_unref (dt2); in test_calendar_properties()
/dports/devel/p5-Time-Moment/Time-Moment-0.44/src/
H A Ddt_arithmetic.c105 dt_to_yd(dt2, &y2, &d2); in dt_delta_yd()
128 dt_to_yqd(dt2, &y2, &q2, &d2); in dt_delta_yqd()
155 dt_to_ymd(dt2, &y2, &m2, &d2); in dt_delta_ymd()
182 dt_to_yd(dt2, &y2, &d2); in dt_delta_years()
186 if (dt1 > dt2) in dt_delta_years()
199 dt_to_yqd(dt2, &y2, &q2, &d2); in dt_delta_quarters()
203 if (dt1 > dt2) in dt_delta_quarters()
216 dt_to_ymd(dt2, &y2, &m2, &d2); in dt_delta_months()
220 if (dt1 > dt2) in dt_delta_months()
229 dt_delta_weeks(dt_t dt1, dt_t dt2) { in dt_delta_weeks() argument
[all …]
/dports/net/libyang/libyang-1.0.240/tests/internal/
H A Dtest_lyb.c30 struct lyd_node *dt1, *dt2; member
287 lyd_free_withsiblings(st->dt2); in teardown_f()
314 check_data_tree(st->dt1, st->dt2); in test_ietf_interfaces()
355 check_data_tree(st->dt1, st->dt2); in test_origin()
376 check_data_tree(st->dt1, st->dt2); in test_statements()
397 check_data_tree(st->dt1, st->dt2); in test_types()
418 check_data_tree(st->dt1, st->dt2); in test_annotations()
439 check_data_tree(st->dt1, st->dt2); in test_similar_annot_names()
460 check_data_tree(st->dt1, st->dt2); in test_many_child_annot()
481 check_data_tree(st->dt1, st->dt2); in test_union()
[all …]
/dports/science/nwchem-data/nwchem-7.0.2-release/src/leps/
H A Dpred-corr.F56 real dt1, dt2, dt3, dt4
61 dt2 = dt1 * dt / 2.0
62 dt3 = dt2 * dt / 3.0
70 a(j,i) = a(j,i) + dt1*b(j,i) + dt2*c(j,i)
111 double precision dt1, dt2, dt3, dt4
122 dt2 = dt1 * dt / 2.0
123 dt3 = dt2 * dt / 3.0
126 cr = c0 * dt2
127 cv = c1 * dt2 / dt1
128 cb = c3 * dt2 / dt3
[all …]
/dports/science/nwchem/nwchem-7b21660b82ebd85ef659f6fba7e1e73433b0bd0a/src/leps/
H A Dpred-corr.F56 real dt1, dt2, dt3, dt4
61 dt2 = dt1 * dt / 2.0
62 dt3 = dt2 * dt / 3.0
70 a(j,i) = a(j,i) + dt1*b(j,i) + dt2*c(j,i)
111 double precision dt1, dt2, dt3, dt4
122 dt2 = dt1 * dt / 2.0
123 dt3 = dt2 * dt / 3.0
126 cr = c0 * dt2
127 cv = c1 * dt2 / dt1
128 cb = c3 * dt2 / dt3
[all …]
/dports/comms/linrad/linrad-04.02/
H A Drxin.c49 double dt2, dt3, dt4; in internal_generator() local
158 iib[i+1]+=floor(dt2); in internal_generator()
163 iib[i+1]+=rint(dt2); in internal_generator()
194 double dt2, dt3, dt4; in internal_generator() local
295 iib[i+1]=floor(dt2); in internal_generator()
300 iib[i+1]=rint(dt2); in internal_generator()
321 double dt2, dt3, dt5; in internal_generator() local
411 iib[i+1]=rint(dt2); in internal_generator()
427 double dt2, dt3, dt5; in internal_generator() local
480 iib[i]=rint(dt2); in internal_generator()
[all …]
/dports/devel/efl/efl-1.25.1/src/bin/elementary/
H A Dtest_datetime.c8 Evas_Object *dt1, *dt2, *dt3; variable
38 evas_object_del(dt2); in _bt_clicked()
40 dt2 = dt3 = NULL; in _bt_clicked()
69 dt2 = elm_datetime_add(bx); in test_datetime()
71 evas_object_size_hint_align_set(dt2, EVAS_HINT_FILL, 0.5); in test_datetime()
72 elm_datetime_field_visible_set(dt2, ELM_DATETIME_YEAR, EINA_FALSE); in test_datetime()
73 elm_datetime_field_visible_set(dt2, ELM_DATETIME_MONTH, EINA_FALSE); in test_datetime()
74 elm_datetime_field_visible_set(dt2, ELM_DATETIME_DATE, EINA_FALSE); in test_datetime()
75 elm_box_pack_end(bx, dt2); in test_datetime()
76 elm_object_disabled_set(dt2, EINA_TRUE); in test_datetime()
[all …]
/dports/net/libyang/libyang-1.0.240/tests/data/
H A Dtest_must_1.1.c28 struct lyd_node *dt2; member
66 lyd_free_withsiblings(st->dt2); in teardown_f()
91 assert_ptr_not_equal(st->dt2, NULL); in test_dependency_rpc()
93 assert_int_equal(lyd_validate(&(st->dt), LYD_OPT_RPC, st->dt2), 0); in test_dependency_rpc()
98 lyd_print_mem(&(st->xml), st->dt2, LYD_XML, LYP_WITHSIBLINGS); in test_dependency_rpc()
118 assert_ptr_not_equal(st->dt2, NULL); in test_dependency_action()
120 assert_int_equal(lyd_validate(&(st->dt), LYD_OPT_RPC, st->dt2), 0); in test_dependency_action()
125 lyd_print_mem(&(st->xml), st->dt2, LYD_XML, LYP_WITHSIBLINGS); in test_dependency_action()
152 assert_ptr_not_equal(st->dt2, NULL); in test_inout()
154 assert_int_equal(lyd_validate(&(st->dt2), LYD_OPT_RPCREPLY, NULL), 1); in test_inout()
[all …]

12345678910>>...94