/third_party/boost/libs/date_time/test/posix_time/ |
D | testiterator.cpp | 18 void iterate_backward(const boost::posix_time::ptime *answers, int ary_len, in iterate_backward() 25 ptime end = answers[i]; in iterate_backward() 45 ptime start(d); in main() 46 const ptime answer1[] = {ptime(d), ptime(d,seconds(1)), in main() 47 ptime(d,seconds(2)), ptime(d,seconds(3))}; in main() 50 for (; titr < ptime(d,seconds(4)); ++titr) { in main() 60 const ptime answer2[] = {ptime(d), ptime(d,hours(1)), in main() 61 ptime(d,hours(2)), ptime(d,hours(3))}; in main() 64 for (; titr2 < ptime(d,hours(4)); ++titr2) { in main() 75 const ptime answer3[] = {ptime(d), ptime(d,minutes(15)), in main() [all …]
|
D | testtime.cpp | 27 ptime def; in special_values_tests() 28 check("Default constructor", def == ptime(not_a_date_time)); in special_values_tests() 38 constexpr ptime t1(d1); in special_values_tests() 45 constexpr ptime t2(d1, time_duration(1,2,3)); in special_values_tests() 55 ptime p_sv1(pos_infin); in special_values_tests() 58 ptime result = p_sv1 + dd; in special_values_tests() 65 ptime p_sv2(neg_infin); in special_values_tests() 70 ptime p_sv3(not_a_date_time); in special_values_tests() 86 ptime p_sv1(d_pi, td); in special_values_tests() 89 ptime p_sv2(d_ni, td); in special_values_tests() [all …]
|
D | testlocal_adjustor.cpp | 24 typedef boost::date_time::static_local_time_adjustor<ptime, in main() 30 ptime t10(d3, hours(4)); in main() 31 ptime t10_check(d3, hours(9)); //utc is 5 hours ahead in main() 34 ptime t10_local = t10 + td; in main() 43 ptime t11(d4, hours(3)); in main() 46 ptime t11_check(d4, hours(7));//now utc offset is only 4 hours in main() 47 ptime t11_local = t11 + us_eastern::local_to_utc_offset(t11); in main() 58 ptime l_not_dst(dst_start, time_duration(1,59,59)); //2002-Apr-07 01:59:59 in main() 61 ptime u_not_dst(dst_start, time_duration(6,59,59)); in main() 64 ptime l_in_dst(dst_start, hours(3)); //2002-Apr-07 03:00:00 1st sec of dst in main() [all …]
|
D | testparse_time.cpp | 93 ptime t2 = time_from_string(ts2); in main() 95 t2 == ptime(date(2002,12,31),time_duration(0,0,0)+nanosec(999999999))); in main() 99 ptime t2 = time_from_string(ts2); in main() 101 t2 == ptime(date(2002,12,31),time_duration(0,0,0))); in main() 140 ptime t1 = time_from_string(ts1); in main() 142 t1 == ptime(date(2002,1,20),time_duration(23,59,59))); in main() 146 ptime t1 = time_from_string(ts1x); in main() 148 t1 == ptime(date(2002,1,20),time_duration(23,59,59))); in main() 163 ptime t20 = from_iso_string(ts3); in main() 165 t20 == ptime(date(2002,1,20),time_duration(23,58,59))); in main() [all …]
|
D | testgreg_duration_operators.cpp | 27 ptime p(date(2001, Oct, 31), hours(5)); in main() 29 ptime(date(2002, Feb, 28), hours(5)) == p + months(4)); in main() 32 ptime(date(2002, Feb, 28), hours(5)) == p); in main() 35 ptime p(date(2001, Oct, 31), hours(5)); in main() 37 ptime(date(2001, Apr, 30), hours(5)) == p - months(6)); in main() 40 ptime(date(2001, Apr, 30), hours(5)) == p); in main() 45 ptime p(date(2001, Feb, 28), hours(5)); in main() 47 ptime(date(2004, Feb, 29), hours(5)) == p + years(3)); in main() 50 ptime(date(2004, Feb, 29), hours(5)) == p); in main() 53 ptime p(date(2000, Feb, 29), hours(5)); in main() [all …]
|
D | testdst_rules.cpp | 54 ptime t(d); in main() 62 ptime t3a(dst_start, time_duration(2,0,0)); //invalid time label in main() 63 ptime t3b(dst_start, time_duration(2,59,59)); //invalid time label in main() 64 ptime t4(dst_start, time_duration(1,59,59)); //not ds in main() 65 ptime t5(dst_start, time_duration(3,0,0)); //always dst in main() 66 ptime t6(dst_end, time_duration(0,59,59)); //is dst in main() 67 ptime t7(dst_end, time_duration(1,0,0)); //ambiguous in main() 68 ptime t8(dst_end, time_duration(1,59,59)); //ambiguous in main() 69 ptime t9(dst_end, time_duration(2,0,0)); //always not dst in main() 258 ptime eu_invalid1(eu_dst_start, time_duration(2,0,0)); //invalid time label in main() [all …]
|
D | testtime_input_facet.cpp | 80 ptime pt(not_a_date_time); in do_all_tests() 100 check_equal("Default format ptime", pt, ptime(date(2005,01,15),time_duration(10,15,3,123456789))); in do_all_tests() 103 check_equal("Default format ptime", pt, ptime(date(2005,01,15),time_duration(10,15,3,123456))); in do_all_tests() 112 check_equal("Default format ptime", pt, ptime(date(2005,01,15),time_duration(12,34,56))); in do_all_tests() 154 check_equal("Extended Ordinal format", pt, ptime(date(2005,4,15),time_duration(23,59,0))); in do_all_tests() 166 check_equal("Literal '%' in format", pt, ptime(date(2005,6,14),time_duration(15,15,0))); in do_all_tests() 174 check_equal("Multiple literal '%'s in format", pt, ptime(date(2005,6,14),time_duration(15,15,0))); in do_all_tests() 186 ptime pt2(not_a_date_time); in do_all_tests() 194 ptime result(dx, td2); in do_all_tests() 289 check_equal("Special value: ptime %H flag", pt, ptime(pos_infin)); in do_all_tests() [all …]
|
D | testtime_formatters.cpp | 23 ptime t1(d1,time_duration(1,2,3)); //2002-Jan-1 01:02:03 in main() 34 ptime t4(d1,hours(1)+minutes(2)+seconds(3)+millisec(4)); in main() 43 ptime t3(d1,hours(1)+minutes(2)+seconds(3)+microsec(4)); in main() 68 ptime t2(d1,hours(12) + minutes(5) + seconds(1)); in main() 73 ptime t3(d1,hours(1)+minutes(2)+seconds(3)+nanosec(4)); in main() 92 ptime t4(d1,hours(1)+minutes(2)+seconds(3)+millisec(4)); in main() 103 CHECK_ROUNDTRIP(ptime()); in main() 104 CHECK_ROUNDTRIP(ptime(not_a_date_time)); // should be same as previous in main() 105 CHECK_ROUNDTRIP(ptime(pos_infin)); in main() 106 CHECK_ROUNDTRIP(ptime(neg_infin)); in main() [all …]
|
D | teststreams.cpp | 32 ptime t1(d1, hours(12)+minutes(10)+seconds(5)); in main() 34 ptime t0(d1, td0); in main() 44 time_period tp(t1, ptime(d1, hours(23)+time_duration::unit())); in main() 107 check("Stream in ptime", t1 == ptime(date(2003,May,13), time_duration(1,2,3))); in main() 110 check("Stream in ptime2", t1 == ptime(date(2003,Jan,13), time_duration(1,2,3))); in main() 113 check("Stream in ptime3", t1 == ptime(date(2003,Feb,13), time_duration(11,10,9))); in main() 134 time_period result(ptime(d1x,td1x), ptime(d2x,td2x)); in main() 149 check("Wide stream in ptime", t1 == ptime(date(2003,May,23), time_duration(3,20,10))); in main() 157 time_period result = time_period(ptime(d1x,td1x), ptime(d2x,td2x)); in main()
|
/third_party/boost/boost/date_time/posix_time/ |
D | date_duration_operators.hpp | 30 ptime 31 operator+(const ptime& t, const boost::gregorian::months& m) in operator +() 40 ptime 41 operator+=(ptime& t, const boost::gregorian::months& m) in operator +=() 51 ptime 52 operator-(const ptime& t, const boost::gregorian::months& m) in operator -() 62 ptime 63 operator-=(ptime& t, const boost::gregorian::months& m) in operator -=() 74 ptime 75 operator+(const ptime& t, const boost::gregorian::years& y) in operator +() [all …]
|
D | ptime.hpp | 32 class BOOST_SYMBOL_VISIBLE ptime : public date_time::base_time<ptime, posix_time_system> class 38 typedef ptime time_type; 41 ptime(gregorian::date d,time_duration_type td) : in ptime() function in boost::posix_time::ptime 46 explicit ptime(gregorian::date d) : in ptime() function in boost::posix_time::ptime 51 ptime(const time_rep_type& rhs): in ptime() function in boost::posix_time::ptime 56 ptime(const special_values sv) : in ptime() function in boost::posix_time::ptime 62 ptime() : in ptime() function in boost::posix_time::ptime 69 bool operator==(const ptime& lhs, const ptime& rhs); 74 bool operator==(const ptime& lhs, const ptime& rhs) in operator ==() 76 return ptime::time_system_type::is_equal(lhs.time_,rhs.time_); in operator ==()
|
D | time_serialize.hpp | 48 BOOST_DATE_TIME_SPLIT_FREE(boost::posix_time::ptime) 163 const posix_time::ptime& pt, in save() 168 posix_time::ptime::date_type d = pt.date(); in save() 171 posix_time::ptime::time_duration_type td = pt.time_of_day(); in save() 182 posix_time::ptime & pt, in load() 187 posix_time::ptime::date_type d(posix_time::not_a_date_time); in load() 188 posix_time::ptime::time_duration_type td; in load() 192 pt = boost::posix_time::ptime(d,td); in load() 195 pt = boost::posix_time::ptime(d.as_special()); in load() 203 posix_time::ptime* pt, in load_construct_data() [all …]
|
D | time_parsers.hpp | 30 inline ptime time_from_string(const std::string& s) { in time_from_string() 31 return date_time::parse_delimited_time<ptime>(s, ' '); in time_from_string() 34 inline ptime from_iso_string(const std::string& s) { in from_iso_string() 35 return date_time::parse_iso_time<ptime>(s, 'T'); in from_iso_string() 38 inline ptime from_iso_extended_string(const std::string& s) { in from_iso_extended_string() 39 return date_time::parse_delimited_time<ptime>(s, 'T'); in from_iso_extended_string()
|
D | conversion.hpp | 27 ptime from_time_t(std::time_t t) in from_time_t() 29 return ptime(gregorian::date(1970,1,1)) + seconds(static_cast<long>(t)); in from_time_t() 34 std::time_t to_time_t(ptime pt) in to_time_t() 36 return (pt - ptime(gregorian::date(1970,1,1))).total_seconds(); in to_time_t() 41 std::tm to_tm(const boost::posix_time::ptime& t) { in to_tm() 64 ptime ptime_from_tm(const std::tm& timetm) { in ptime_from_tm() 66 return ptime(d, time_duration(timetm.tm_hour, timetm.tm_min, timetm.tm_sec)); in ptime_from_tm()
|
/third_party/openssl/test/ |
D | asn1_time_test.c | 114 ASN1_TIME *ptime; in test_table() local 159 ptime = ASN1_TIME_set(NULL, td->t); in test_table() 160 if (!TEST_ptr(ptime)) { in test_table() 165 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(ptime, td->t), 0)) { in test_table() 167 (long)td->t, td->data, ptime->data); in test_table() 170 if (!TEST_int_eq(ptime->type, td->expected_type)) { in test_table() 175 TEST_info("ASN1_TIME_set() = %*s", ptime->length, ptime->data); in test_table() 176 ASN1_TIME_free(ptime); in test_table() 179 ptime = ASN1_TIME_new(); in test_table() 180 if (!TEST_ptr(ptime)) { in test_table() [all …]
|
/third_party/boost/boost/icl/ |
D | ptime.hpp | 47 template<> struct is_discrete<boost::posix_time::ptime> 54 inline boost::posix_time::ptime identity_element<boost::posix_time::ptime>::value() in value() 56 return boost::posix_time::ptime(boost::posix_time::min_date_time); in value() 60 struct has_difference<boost::posix_time::ptime> 67 struct difference_type_of<boost::posix_time::ptime> 73 struct size_type_of<boost::posix_time::ptime> 79 inline boost::posix_time::ptime operator ++(boost::posix_time::ptime& x) in operator ++() 81 return x += boost::posix_time::ptime::time_duration_type::unit(); in operator ++() 84 inline boost::posix_time::ptime operator --(boost::posix_time::ptime& x) in operator --() 86 return x -= boost::posix_time::ptime::time_duration_type::unit(); in operator --() [all …]
|
/third_party/boost/libs/date_time/example/posix_time/ |
D | local_utc_conversion.cpp | 28 typedef boost::date_time::c_local_adjustor<ptime> local_adj; in main() 29 ptime t10(date(2002,Jan,1), hours(7)); in main() 30 ptime t11 = local_adj::utc_to_local(t10); in main() 41 typedef boost::date_time::local_adjustor<ptime, -5, us_dst> us_eastern; in main() 43 ptime t1(date(2001,Dec,31), hours(19)); //5 hours b/f midnight NY time in main() 47 ptime t2 = us_eastern::local_to_utc(t1); in main() 52 ptime t3 = us_eastern::utc_to_local(t2);//back should be the same in main() 57 ptime t4(date(2002,May,31), hours(20)); //4 hours b/f midnight NY time in main() 59 ptime t5 = us_eastern::local_to_utc(t4); in main() 64 ptime t6 = us_eastern::utc_to_local(t5);//back should be the same in main() [all …]
|
/third_party/boost/libs/icl/example/partys_tallest_guests_/ |
D | partys_tallest_guests.cpp | 46 typedef interval_map<ptime, int, partial_absorber, less, inplace_max> 50 typedef split_interval_map<ptime, int, partial_absorber, less, inplace_max> 59 discrete_interval<ptime>::right_open( in partys_height() 66 discrete_interval<ptime>::right_open( in partys_height() 73 discrete_interval<ptime>::right_open( in partys_height() 82 discrete_interval<ptime> when = height_->first; in partys_height() 100 discrete_interval<ptime>::right_open( in partys_split_height() 107 discrete_interval<ptime>::right_open( in partys_split_height() 114 discrete_interval<ptime>::right_open( in partys_split_height() 125 discrete_interval<ptime> when = height_->first; in partys_split_height()
|
/third_party/boost/libs/date_time/test/local_time/ |
D | testposix_time_zone.cpp | 44 ptime(date(2003,Apr,6),time_duration(2,0,0))); in main() 48 ptime(date(2003,Oct,26),time_duration(2,0,0))); in main() 65 az1.dst_local_start_time(2005) == ptime(not_a_date_time)); in main() 67 az2.dst_local_end_time(2005) == ptime(not_a_date_time)); in main() 92 ptime(date(1962,Feb,8),time_duration(3,15,42))); in main() 94 ptime(date(1962,Nov,27),time_duration(1,8,53))); in main() 101 ptime(date(2003,Feb,15),time_duration(1,30,0))); in main() 103 ptime(date(2003,Nov,6),time_duration(2,0,0))); in main() 119 ptime(date(2003,Feb,15),time_duration(2,0,0))); in main() 121 ptime(date(2003,Nov,6),time_duration(0,30,0))); in main() [all …]
|
D | testwposix_time_zone.cpp | 47 ptime(date(2003,Apr,6),time_duration(2,0,0))); in main() 51 ptime(date(2003,Oct,26),time_duration(2,0,0))); in main() 68 az1.dst_local_start_time(2005) == ptime(not_a_date_time)); in main() 70 az2.dst_local_end_time(2005) == ptime(not_a_date_time)); in main() 95 ptime(date(1962,Feb,8),time_duration(3,15,42))); in main() 97 ptime(date(1962,Nov,27),time_duration(1,8,53))); in main() 104 ptime(date(2003,Feb,15),time_duration(1,30,0))); in main() 106 ptime(date(2003,Nov,6),time_duration(2,0,0))); in main() 122 ptime(date(2003,Feb,15),time_duration(2,0,0))); in main() 124 ptime(date(2003,Nov,6),time_duration(0,30,0))); in main() [all …]
|
/third_party/boost/libs/intrusive/perf/ |
D | perf_list.cpp | 85 ptime tini = microsec_clock::universal_time(); in test_intrusive_list_push_back() 97 ptime tend = microsec_clock::universal_time(); in test_intrusive_list_push_back() 106 ptime tini = microsec_clock::universal_time(); in test_std_list_push_back() 116 ptime tend = microsec_clock::universal_time(); in test_std_list_push_back() 127 ptime tini = microsec_clock::universal_time(); in test_compact_std_ptrlist_push_back() 139 ptime tend = microsec_clock::universal_time(); in test_compact_std_ptrlist_push_back() 150 ptime tini = microsec_clock::universal_time(); in test_disperse_std_ptrlist_push_back() 163 ptime tend = microsec_clock::universal_time(); in test_disperse_std_ptrlist_push_back() 186 ptime tini = microsec_clock::universal_time(); in test_intrusive_list_reverse() 190 ptime tend = microsec_clock::universal_time(); in test_intrusive_list_reverse() [all …]
|
/third_party/boost/libs/icl/example/partys_height_average_/ |
D | partys_height_average.cpp | 63 interval_map<ptime, counted_sum> height_sums; in partys_height_average() 67 discrete_interval<ptime>::right_open( in partys_height_average() 74 discrete_interval<ptime>::right_open( in partys_height_average() 81 discrete_interval<ptime>::right_open( in partys_height_average() 88 discrete_interval<ptime>::right_open( in partys_height_average() 95 discrete_interval<ptime>::right_open( in partys_height_average() 100 interval_map<ptime, counted_sum>::iterator height_sum_ = height_sums.begin(); in partys_height_average() 104 discrete_interval<ptime> when = height_sum_->first; in partys_height_average()
|
/third_party/boost/libs/icl/test/ex_boost_party_/ |
D | ex_boost_party.cpp | 31 interval_map<ptime, GuestSetT> boost_party() in boost_party() 45 interval_map<ptime, GuestSetT> party; in boost_party() 49 interval<ptime>::right_open( in boost_party() 56 interval<ptime>::right_open( in boost_party() 63 interval<ptime>::right_open( in boost_party() 69 interval_map<ptime, GuestSetT>::iterator it = party.begin(); in boost_party() 73 interval<ptime>::type when = it->first; in boost_party() 85 typedef interval_map<ptime, GuestSetT> PartyHistory; 91 return make_pair( interval<ptime> in episode()
|
/third_party/boost/libs/asio/include/boost/asio/detail/impl/ |
D | timer_queue_ptime.ipp | 30 timer_queue<time_traits<boost::posix_time::ptime> >::timer_queue() 34 timer_queue<time_traits<boost::posix_time::ptime> >::~timer_queue() 38 bool timer_queue<time_traits<boost::posix_time::ptime> >::enqueue_timer( 44 bool timer_queue<time_traits<boost::posix_time::ptime> >::empty() const 49 long timer_queue<time_traits<boost::posix_time::ptime> >::wait_duration_msec( 55 long timer_queue<time_traits<boost::posix_time::ptime> >::wait_duration_usec( 61 void timer_queue<time_traits<boost::posix_time::ptime> >::get_ready_timers( 67 void timer_queue<time_traits<boost::posix_time::ptime> >::get_all_timers( 73 std::size_t timer_queue<time_traits<boost::posix_time::ptime> >::cancel_timer( 79 void timer_queue<time_traits<boost::posix_time::ptime> >::move_timer(
|
/third_party/boost/boost/asio/detail/impl/ |
D | timer_queue_ptime.ipp | 30 timer_queue<time_traits<boost::posix_time::ptime> >::timer_queue() 34 timer_queue<time_traits<boost::posix_time::ptime> >::~timer_queue() 38 bool timer_queue<time_traits<boost::posix_time::ptime> >::enqueue_timer( 44 bool timer_queue<time_traits<boost::posix_time::ptime> >::empty() const 49 long timer_queue<time_traits<boost::posix_time::ptime> >::wait_duration_msec( 55 long timer_queue<time_traits<boost::posix_time::ptime> >::wait_duration_usec( 61 void timer_queue<time_traits<boost::posix_time::ptime> >::get_ready_timers( 67 void timer_queue<time_traits<boost::posix_time::ptime> >::get_all_timers( 73 std::size_t timer_queue<time_traits<boost::posix_time::ptime> >::cancel_timer( 79 void timer_queue<time_traits<boost::posix_time::ptime> >::move_timer(
|