Lines Matching refs:util

72 static bool eqDuration(util::Duration a, util::Duration b) {  in eqDuration()
80 static void doTest(util::Duration const & rid, char const*const pis, in doTest()
84 util::Duration od; in doTest()
101 util::Duration od; in doTestDurationF()
113 doTest( util::Duration(false, 1, 0, 0, 0, 0, 0, 0), "P1Y" ); in testDuration()
114 doTest( util::Duration(false, 0, 42, 0, 0, 0, 0, 0), "P42M" ); in testDuration()
115 doTest( util::Duration(false, 0, 0, 111, 0, 0, 0, 0), "P111D" ); in testDuration()
116 doTest( util::Duration(false, 0, 0, 0, 52, 0, 0, 0), "PT52H" ); in testDuration()
117 doTest( util::Duration(false, 0, 0, 0, 0, 717, 0, 0), "PT717M" ); in testDuration()
118 doTest( util::Duration(false, 0, 0, 0, 0, 0, 121, 0), "PT121S" ); in testDuration()
119 doTest( util::Duration(false, 0, 0, 0, 0, 0, 0, 190), "PT0.19S" ); in testDuration()
120 doTest( util::Duration(false, 0, 0, 0, 0, 0, 0, 90), "PT0.09S" ); in testDuration()
121 doTest( util::Duration(false, 0, 0, 0, 0, 0, 0, 9), "PT0.009S" ); in testDuration()
122 doTest( util::Duration(false, 0, 0, 0, 0, 0, 9, 999), in testDuration()
124 doTest( util::Duration(true , 0, 0, 9999, 0, 0, 0, 0), "-P9999D" ); in testDuration()
125 doTest( util::Duration(true , 7, 6, 5, 4, 3, 2, 10), in testDuration()
127 doTest( util::Duration(false, 0, 6, 0, 0, 3, 0, 0), "P6MT3M" ); in testDuration()
128 doTest( util::Duration(false, 0, 0, 0, 0, 0, 0, 0), "P0D" ); in testDuration()
144 static bool eqDateTime(util::DateTime a, util::DateTime b) { in eqDateTime()
151 static void doTest(util::DateTime const & rdt, char const*const pis, in doTest()
156 util::DateTime odt; in doTest()
172 util::DateTime odt; in doTestDateTimeF()
184 doTest( util::DateTime(0, 0, 0, 0, 1, 1, 1), "0001-01-01T00:00:00" ); in testDateTime()
185 doTest( util::DateTime(0, 0, 0, 0, 1, 1, 1), in testDateTime()
189 doTest( util::DateTime(0, 0, 0, 0, 1, 1, 1), in testDateTime()
191 doTest( util::DateTime(0, 0, 0, 0, 1, 1, 1), in testDateTime()
193 doTest( util::DateTime(0, 0, 0, 0, 2, 1, 1)/*(0, 0, 12, 0, 2, 1, 1)*/, in testDateTime()
196 doTest( util::DateTime(0, 0, 0, 0, 2, 1, 1)/*(0, 0, 12, 0, 1, 1, 1)*/, in testDateTime()
199 doTest( util::DateTime(99, 59, 59, 23, 31, 12, 9999), in testDateTime()
201 doTest( util::DateTime(99, 59, 59, 23, 31, 12, 9999), in testDateTime()
203 doTest( util::DateTime(99, 59, 59, 23, 31, 12, 9999), in testDateTime()
206 doTest( util::DateTime(99, 59, 59, 23, 31, 12, 9999), in testDateTime()
209 doTest( util::DateTime(0, 0, 0, 24, 1, 1, 333) in testDateTime()