Home
last modified time | relevance | path

Searched refs:ymd_type (Results 1 – 20 of 20) sorted by relevance

/third_party/boost/libs/date_time/test/
Dtestgregorian_calendar.cpp25 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,24))==0); in main()
27 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,25))==1); in main()
29 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,26))==2); in main()
31 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,27))==3); in main()
33 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,28))==4); in main()
35 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,29))==5); in main()
37 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,30))==6); in main()
40 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(1953,8,2))==0); in main()
42 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(1953,8,3))==1); in main()
44 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(1953,8,4))==2); in main()
[all …]
/third_party/boost/libs/date_time/test/gregorian/
Dtestgreg_cal.cpp18 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,24))==0); in test_greg_calendar()
20 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,25))==1); in test_greg_calendar()
22 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,26))==2); in test_greg_calendar()
24 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,27))==3); in test_greg_calendar()
26 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,28))==4); in test_greg_calendar()
28 gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,29))==5); in test_greg_calendar()
29 …00-09-30 == 6 (Sat)", gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(2000,9,30))==6); in test_greg_calendar()
31 …953-08-02 == 0 (Sun)", gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(1953,8,2))==0); in test_greg_calendar()
32 …953-08-03 == 1 (Mon)", gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(1953,8,3))==1); in test_greg_calendar()
33 …953-08-04 == 2 (Tue)", gregorian_calendar::day_of_week(gregorian_calendar::ymd_type(1953,8,4))==2); in test_greg_calendar()
[all …]
Dtestcurrent_day.cpp20 date::ymd_type ymd = day_clock::local_day_ymd(); in main()
29 date::ymd_type ymd2 = day_clock::universal_day_ymd(); in main()
Dtestdate.cpp90 date::ymd_type ymd = d1.year_month_day(); in main()
/third_party/boost/boost/date_time/
Dgregorian_calendar.hpp32 typedef ymd_type_ ymd_type; typedef in boost::date_time::gregorian_calendar_base
34 typedef typename ymd_type::month_type month_type;
36 typedef typename ymd_type::day_type day_type;
38 typedef typename ymd_type::year_type year_type;
43 static BOOST_CXX14_CONSTEXPR unsigned short day_of_week(const ymd_type& ymd);
44 static BOOST_CXX14_CONSTEXPR int week_number(const ymd_type&ymd);
45 static BOOST_CXX14_CONSTEXPR date_int_type day_number(const ymd_type& ymd);
46 static BOOST_CXX14_CONSTEXPR date_int_type julian_day_number(const ymd_type& ymd);
47 static BOOST_CXX14_CONSTEXPR date_int_type modjulian_day_number(const ymd_type& ymd);
48 static BOOST_CXX14_CONSTEXPR ymd_type from_day_number(date_int_type);
[all …]
Ddate_formatting_limited.hpp60 template<class ymd_type, class format_type>
73 static std::string ymd_to_string(ymd_type ymd) in ymd_to_string()
75 typedef typename ymd_type::month_type month_type; in ymd_to_string()
101 typedef typename date_type::ymd_type ymd_type; in date_to_string() typedef
111 ymd_type ymd = d.year_month_day(); in date_to_string()
112 return ymd_formatter<ymd_type, format_type>::ymd_to_string(ymd); in date_to_string()
Ddate_formatting.hpp69 template<class ymd_type, class format_type, class charT=char>
82 static std::basic_string<charT> ymd_to_string(ymd_type ymd) in ymd_to_string()
84 typedef typename ymd_type::month_type month_type; in ymd_to_string()
117 typedef typename date_type::ymd_type ymd_type; in date_to_string() typedef
127 ymd_type ymd = d.year_month_day(); in date_to_string()
128 return ymd_formatter<ymd_type, format_type, charT>::ymd_to_string(ymd); in date_to_string()
Ddate_clock_device.hpp28 typedef typename date_type::ymd_type ymd_type; typedef in boost::date_time::day_clock
35 static typename date_type::ymd_type local_day_ymd() in local_day_ymd()
39 return ymd_type(static_cast<unsigned short>(curr->tm_year + 1900), in local_day_ymd()
44 static typename date_type::ymd_type universal_day_ymd() in universal_day_ymd()
48 return ymd_type(static_cast<unsigned short>(curr->tm_year + 1900), in universal_day_ymd()
Ddate.hpp67 typedef typename calendar::ymd_type ymd_type; typedef in boost::date_time::date
72 : days_(calendar::day_number(ymd_type(y, m, d))) in date()
74 BOOST_CXX14_CONSTEXPR date(const ymd_type& ymd) in date()
80 ymd_type ymd = calendar::from_day_number(days_); in year()
85 ymd_type ymd = calendar::from_day_number(days_); in month()
90 ymd_type ymd = calendar::from_day_number(days_); in day()
95 ymd_type ymd = calendar::from_day_number(days_); in day_of_week()
98 BOOST_CXX14_CONSTEXPR ymd_type year_month_day() const in year_month_day()
Dadjust_functors.hpp54 typedef typename cal_type::ymd_type ymd_type; typedef in boost::date_time::month_functor
60 ymd_type ymd(d.year_month_day()); in get_offset()
71 …const typename ymd_type::year_type year(static_cast<typename ymd_type::year_type::value_type>(ymd.… in get_offset()
89 ymd_type ymd(d.year_month_day()); in get_neg_offset()
100 …const typename ymd_type::year_type year(static_cast<typename ymd_type::year_type::value_type>(ymd.… in get_neg_offset()
Ddate_formatting_locales.hpp102 template<class ymd_type,
108 typedef typename ymd_type::month_type month_type;
132 static void ymd_put(ymd_type ymd, in ymd_put()
191 typedef typename date_type::ymd_type ymd_type; typedef in boost::date_time::ostream_date_formatter
200 ymd_type ymd = d.year_month_day(); in date_put()
201 ostream_ymd_formatter<ymd_type, facet_type, charT>::ymd_put(ymd, os, f); in date_put()
Dgregorian_calendar.ipp19 gregorian_calendar_base<ymd_type_,date_int_type_>::day_of_week(const ymd_type& ymd) {
38 gregorian_calendar_base<ymd_type_,date_int_type_>::week_number(const ymd_type& ymd) {
39 unsigned long julianbegin = julian_day_number(ymd_type(ymd.year,1,1));
57 julianbegin = julian_day_number(ymd_type(static_cast<unsigned short>(ymd.year-1),1,1));
68 //! Convert a ymd_type into a day number
75 gregorian_calendar_base<ymd_type_,date_int_type_>::day_number(const ymd_type& ymd)
91 gregorian_calendar_base<ymd_type_,date_int_type_>::julian_day_number(const ymd_type& ymd)
104 gregorian_calendar_base<ymd_type_,date_int_type_>::modjulian_day_number(const ymd_type& ymd)
127 return ymd_type(static_cast<unsigned short>(year),month,day);
148 return ymd_type(year,month,day);
[all …]
Dtime_system_counted.hpp31 typedef typename date_type::ymd_type ymd_type; typedef
64 ymd_type ymd = calendar_type::from_day_number(dc); in date()
/third_party/boost/boost/date_time/gregorian/
Dgreg_date.hpp45 typedef gregorian_calendar::ymd_type ymd_type; typedef in boost::gregorian::date
64 BOOST_CXX14_CONSTEXPR explicit date(const ymd_type& ymd) in date()
92 ymd_type ymd = year_month_day(); in julian_day()
105 ymd_type ymd = year_month_day(); in modjulian_day()
111 ymd_type ymd = year_month_day(); in week_number()
122 ymd_type ymd = year_month_day(); in end_of_month()
Dconversion.hpp47 boost::gregorian::date::ymd_type ymd = d.year_month_day(); in to_tm()
Dformatters_limited.hpp65 date::ymd_type ymd = d.year_month_day(); in to_sql_string()
Dformatters.hpp107 date::ymd_type ymd = d.year_month_day(); in to_sql_string_type()
/third_party/boost/libs/date_time/example/gregorian/
Ddays_till_new_year.cpp12 date::ymd_type today = day_clock::local_day_ymd(); in main()
Ddates_as_strings.cpp34 date::ymd_type ymd = d1.year_month_day(); in main()
/third_party/boost/boost/log/support/
Ddate_time.hpp56 typedef typename DateT::ymd_type ymd_type; in decompose_date() typedef
57 ymd_type ymd = d.year_month_day(); in decompose_date()