/third_party/libsoup/libsoup/ |
D | soup-date.c | 68 rata_die_day (SoupDate *date) in rata_die_day() argument 72 day = (date->year - 1) * 365 + ((date->year - 1) / 4) - in rata_die_day() 73 ((date->year - 1) / 100) + ((date->year - 1) / 400); in rata_die_day() 74 day += nonleap_days_before[date->month] + date->day; in rata_die_day() 75 if (is_leap_year (date->year) && date->month > 2) in rata_die_day() 94 soup_date_fixup (SoupDate *date) in G_DEFINE_BOXED_TYPE() 99 if (date->second < 0 || date->second > 61) { in G_DEFINE_BOXED_TYPE() 100 date->minute += date->second / 60; in G_DEFINE_BOXED_TYPE() 101 date->second %= 60; in G_DEFINE_BOXED_TYPE() 102 if (date->second < 0) in G_DEFINE_BOXED_TYPE() [all …]
|
D | soup-date.h | 57 char *soup_date_to_string (SoupDate *date, 60 time_t soup_date_to_time_t (SoupDate *date); 66 void soup_date_to_timeval (SoupDate *date, 72 gboolean soup_date_is_past (SoupDate *date); 75 int soup_date_get_year (SoupDate *date); 77 int soup_date_get_month (SoupDate *date); 79 int soup_date_get_day (SoupDate *date); 81 int soup_date_get_hour (SoupDate *date); 83 int soup_date_get_minute (SoupDate *date); 85 int soup_date_get_second (SoupDate *date); [all …]
|
/third_party/boost/libs/date_time/test/gregorian/ |
D | testdate_iterator.cpp | 13 void test_month_decrement_iterator(const boost::gregorian::date *Answers, int array_len){ in test_month_decrement_iterator() 15 typedef boost::date_time::month_functor<date> mfg; in test_month_decrement_iterator() 17 boost::date_time::date_itr<mfg, date> ditr(Answers[array_len-1]); in test_month_decrement_iterator() 34 void test_base_iterator(boost::gregorian::date end, in test_base_iterator() 49 day_iterator di(date(2002,Jan,1)); in main() 51 test_base_iterator(date(2002,Jan,3),di,data); in main() 52 month_iterator di2(date(2002,Jan,3)); in main() 53 test_base_iterator(date(2002,Mar,1),di2,data); in main() 59 typedef boost::date_time::day_functor<date> dfg; in main() 62 const date DayAnswers[] = {date(2000,Jan,20),date(2000,Jan,22),date(2000,Jan,24)}; in main() [all …]
|
D | testdate.cpp | 20 boost::gregorian::date chkyr(yr, 1, 1); in test_yearlimit() 34 date def; in main() 35 check("Default constructor", def == date(not_a_date_time)); in main() 43 constexpr date d1(1900,1,1); in main() 47 constexpr date d2 = date(2000,12,31); in main() 48 constexpr date d3(d2); in main() 57 date d1(1900,1,1); in main() 58 date d2 = date(2000,1,1); in main() 59 date d3(d2); in main() 61 date d4(2000,12,31); in main() [all …]
|
D | testformat_date_parser.cpp | 70 boost::gregorian::date expected_res) in wtest_format() 72 typedef boost::date_time::format_date_parser<date, wchar_t> parser_type; in wtest_format() 84 date d = p.parse_date(sitr, stream_end, format); in wtest_format() 98 boost::gregorian::date expected_res) in test_format() 100 typedef boost::date_time::format_date_parser<date, char> parser_type; in test_format() 112 date d = pt.parse_date(sitr, stream_end, format); in test_format() 124 test_format2(boost::date_time::format_date_parser<date, charT>& parser, in test_format2() argument 128 boost::gregorian::date expected_res) in test_format2() 131 date d = parser.parse_date(value, format); in test_format2() 178 "wide and weird", date(2004,12,31)); in main() [all …]
|
D | testperiod.cpp | 15 date d1(2000,Jan,1),d2(2000,Jan,4); in main() 16 date d3 = d2; in main() 27 date_period p3(date(2000,Jan,4),date(2000,Feb,1)); in main() 35 date_period p4(date(1999,Dec,1), d2); in main() 38 date_period p5(date(1999,Dec,1), date(2000,Dec,31)); in main() 41 date_period p6(date(2000,Jan,1),date(2000,Dec,31)); in main() 49 date_period shifted(date(2000,Jan,5),date(2000,Jan,8)); in main() 55 date_period p10(date(2000,Jan,5),date(2000,Jan,8)); in main() 57 check("expand", p10 == date_period(date(2000,Jan,3),date(2000,Jan,10))); in main() 60 date_period i1(date(2000,Jan,5), date(2000,Jan,10)); in main() [all …]
|
D | testgreg_durations.cpp | 34 date d1(2005, Jan, 1); in main() 35 date d2(2005, Feb, 1); in main() 37 d1 + months(-1) == date(2004,Dec,1)); in main() 39 d2 + months(-1) == date(2005,Jan,1)); in main() 41 d2 + months(-2) == date(2004,Dec,1)); in main() 43 d2 + months(-12) == date(2004,Feb,1)); in main() 45 d2 + months(-13) == date(2004,Jan,1)); in main() 47 d2 + months(-14) == date(2003,Dec,1)); in main() 48 date d3(2005, Dec, 1); in main() 49 date d4(2005, Nov, 1); in main() [all …]
|
D | testgenerators.cpp | 21 date d = pd1.get_date(2000); in main() 23 check("Partial date getdate", date(2000,1,1) == d); in main() 25 check("Partial date getdate", date(2001,1,1) == d); in main() 40 check("Last kday", date(2002,Feb,24) == lsif.get_date(2002)); in main() 43 check("Last kday", date(2002,Feb,28) == ltif.get_date(2002)); in main() 46 check("Last kday", date(2002,Feb,22) == lfif.get_date(2002)); in main() 53 check("First kday", date(2002,Feb,3) == fsif.get_date(2002)); in main() 56 check("First kday", date(2002,Feb,7) == ftif.get_date(2002)); in main() 59 check("First kday", date(2002,Feb,1) == ffif.get_date(2002)); in main() 64 std::cout << fkaf.get_date(date(2002,Feb,1)) << std::endl; //feb 4 in main() [all …]
|
D | testparse_date.cpp | 21 date d(not_a_date_time); in failure_tests() 56 boost::gregorian::date d(boost::gregorian::from_string(s)); in main() 69 date d(2000, 2, 29); in main() 70 date d2 = from_string("2000-2-29"); in main() 72 date d3 = from_string("2000-FEB-29"); in main() 74 date d4 = from_string("2000-february-29"); in main() 76 date d5 = from_string(to_simple_string(d)); in main() 78 date d6 = from_string(to_iso_extended_string(d)); in main() 80 date d7 = from_us_string("Feb-29-2000"); in main() 82 date d8 = from_uk_string("29-Feb-2000"); in main() [all …]
|
/third_party/libsoup/tests/ |
D | date-test.c | 14 SoupDate *date; in make_date() local 22 date = soup_date_new_from_string (dup); in make_date() 24 return date; in make_date() 30 SoupDate *date; in check_correct_date() local 32 date = make_date (strdate); in check_correct_date() 33 if (!date) { in check_correct_date() 34 g_assert_nonnull (date); in check_correct_date() 38 g_assert_cmpint (date->year, ==, 2004); in check_correct_date() 39 g_assert_cmpint (date->month, ==, 11); in check_correct_date() 40 g_assert_cmpint (date->day, ==, 6); in check_correct_date() [all …]
|
/third_party/boost/libs/date_time/test/posix_time/ |
D | testdst_rules.cpp | 16 typedef boost::gregorian::date date_type; 17 typedef boost::gregorian::date::day_type day_type; 18 typedef boost::gregorian::date::month_type month_type; 19 typedef boost::gregorian::date::year_type year_type; 20 typedef boost::date_time::partial_date<boost::gregorian::date> start_rule_functor; 21 typedef boost::date_time::partial_date<boost::gregorian::date> end_rule_functor; 53 date d(2002,Feb,1); in main() 58 typedef boost::date_time::us_dst_rules<date, time_duration, 120, 60> us_dst_local; in main() 59 date dst_start(2002,Apr, 7); in main() 60 date dst_end(2002,Oct, 27); 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 | testtime.cpp | 20 date d_pi(pos_infin), d_ni(neg_infin), d_ndt(not_a_date_time); in special_values_tests() 23 date d(2003,Oct,31); in special_values_tests() 37 constexpr date d1(1970,1,1); in special_values_tests() 39 static_assert(t1.date().day() == 1, "constexpr construction day()"); in special_values_tests() 40 static_assert(t1.date().month() == 1, "constexpr construction month()"); in special_values_tests() 41 static_assert(t1.date().year() == 1970, "constexpr construction year()"); in special_values_tests() 111 check("ptime::date() +infinity", to_simple_string(p_sv1.date()) == s); in special_values_tests() 120 check("ptime::date() - NADT", to_simple_string(p_sv3.date()) == s); in special_values_tests() 157 date d(2001,Dec,1); in main() 160 check("date part check", t1.date() == d); in main() [all …]
|
/third_party/boost/boost/date_time/gregorian/ |
D | greg_date.hpp | 38 class BOOST_SYMBOL_VISIBLE date : public date_time::date<date, gregorian_calendar, date_duration> class 51 BOOST_CXX14_CONSTEXPR date(): in date() function in boost::gregorian::date 52 …date_time::date<date, gregorian_calendar, date_duration>(date_rep_type::from_special(not_a_date_ti… in date() 56 BOOST_CXX14_CONSTEXPR date(year_type y, month_type m, day_type d) in date() function in boost::gregorian::date 57 : date_time::date<date, gregorian_calendar, date_duration>(y, m, d) in date() 64 BOOST_CXX14_CONSTEXPR explicit date(const ymd_type& ymd) in date() function in boost::gregorian::date 65 : date_time::date<date, gregorian_calendar, date_duration>(ymd) in date() 68 BOOST_CXX14_CONSTEXPR explicit date(const date_int_type& rhs): in date() function in boost::gregorian::date 69 date_time::date<date,gregorian_calendar, date_duration>(rhs) in date() 72 BOOST_CXX14_CONSTEXPR explicit date(date_rep_type rhs): in date() function in boost::gregorian::date [all …]
|
D | gregorian_types.hpp | 41 typedef date_time::period<date, date_duration> date_period; 48 typedef date_time::year_based_generator<date> year_based_generator; 51 typedef date_time::partial_date<date> partial_date; 53 typedef date_time::nth_kday_of_month<date> nth_kday_of_month; 56 typedef date_time::first_kday_of_month<date> first_kday_of_month; 59 typedef date_time::last_kday_of_month<date> last_kday_of_month; 62 typedef date_time::first_kday_after<date> first_kday_after; 65 typedef date_time::first_kday_before<date> first_kday_before; 71 typedef date_time::day_clock<date> day_clock; 76 typedef date_time::date_itr_base<date> date_iterator; [all …]
|
D | parsers.hpp | 48 inline date from_string(const std::string& s) { in from_string() 49 return date_time::parse_date<date>(s); in from_string() 53 inline date from_simple_string(const std::string& s) { in from_simple_string() 54 return date_time::parse_date<date>(s, date_time::ymd_order_iso); in from_simple_string() 58 inline date from_us_string(const std::string& s) { in from_us_string() 59 return date_time::parse_date<date>(s, date_time::ymd_order_us); in from_us_string() 63 inline date from_uk_string(const std::string& s) { in from_uk_string() 64 return date_time::parse_date<date>(s, date_time::ymd_order_dmy); in from_uk_string() 68 inline date from_undelimited_string(const std::string& s) { in from_undelimited_string() 69 return date_time::parse_undelimited_date<date>(s); in from_undelimited_string() [all …]
|
D | formatters.hpp | 33 std::basic_string<charT> to_simple_string_type(const date& d) { in to_simple_string_type() 34 return date_time::date_formatter<date,date_time::simple_format<charT>,charT>::date_to_string(d); in to_simple_string_type() 39 inline std::string to_simple_string(const date& d) { in to_simple_string() 50 …string_type d1(date_time::date_formatter<date,date_time::simple_format<charT>,charT>::date_to_stri… in to_simple_string_type() 51 …string_type d2(date_time::date_formatter<date,date_time::simple_format<charT>,charT>::date_to_stri… in to_simple_string_type() 65 …std::basic_string<charT> s(date_time::date_formatter<date,date_time::iso_format<charT>,charT>::dat… in to_iso_string_type() 66 …return s + sep + date_time::date_formatter<date,date_time::iso_format<charT>,charT>::date_to_strin… in to_iso_string_type() 78 inline std::basic_string<charT> to_iso_extended_string_type(const date& d) { in to_iso_extended_string_type() 79 …return date_time::date_formatter<date,date_time::iso_extended_format<charT>,charT>::date_to_string… in to_iso_extended_string_type() 84 inline std::string to_iso_extended_string(const date& d) { in to_iso_extended_string() [all …]
|
/third_party/boost/libs/icl/example/man_power_/ |
D | man_power.cpp | 40 interval_set<date> weekends(const discrete_interval<date>& scope) in weekends() 42 interval_set<date> weekends; in weekends() 44 date cur_weekend_sat in weekends() 51 weekends += discrete_interval<date>::right_open(*week_iter, *week_iter + days(2)); in weekends() 65 date someday = from_string("2008-08-01"); in man_power() 66 date thenday = someday + months(3); in man_power() 68 discrete_interval<date> scope = discrete_interval<date>::right_open(someday, thenday); in man_power() 74 interval_set<date> worktime(scope); in man_power() 81 worktime -= discrete_interval<date>::closed(from_string("2008-08-18"), in man_power() 89 interval_map<date,int> claudias_working_hours; in man_power() [all …]
|
/third_party/glib/glib/ |
D | gdate.h | 129 void g_date_free (GDate *date); 131 GDate* g_date_copy (const GDate *date); 139 gboolean g_date_valid (const GDate *date); 156 GDateWeekday g_date_get_weekday (const GDate *date); 158 GDateMonth g_date_get_month (const GDate *date); 160 GDateYear g_date_get_year (const GDate *date); 162 GDateDay g_date_get_day (const GDate *date); 164 guint32 g_date_get_julian (const GDate *date); 166 guint g_date_get_day_of_year (const GDate *date); 174 guint g_date_get_monday_week_of_year (const GDate *date); [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | externModule.types | 25 constructor(year: number, month: number, date: number); 28 >date : number 30 constructor(year: number, month: number, date: number, hours: number); 33 >date : number 36 constructor(year: number, month: number, date: number, hours: number, minutes: number); 39 >date : number 43 …constructor(year: number, month: number, date: number, hours: number, minutes: number, seconds: nu… 46 >date : number 51 …constructor(year: number, month: number, date: number, hours: number, minutes: number, seconds: nu… 54 >date : number [all …]
|
/third_party/boost/boost/icl/ |
D | gregorian.hpp | 40 template<> struct is_discrete<boost::gregorian::date> 47 inline boost::gregorian::date identity_element<boost::gregorian::date>::value() in value() 49 return boost::gregorian::date(boost::gregorian::min_date_time); in value() 57 return boost::gregorian::date(boost::gregorian::min_date_time) in value() 58 - boost::gregorian::date(boost::gregorian::min_date_time); in value() 63 struct has_difference<boost::gregorian::date> 70 struct difference_type_of<boost::gregorian::date> 74 struct size_type_of<boost::gregorian::date> 80 inline boost::gregorian::date operator ++(boost::gregorian::date& x) in operator ++() 82 return x += boost::gregorian::date::duration_type::unit(); in operator ++() [all …]
|
/third_party/curl/lib/ |
D | parsedate.c | 96 static int parsedate(const char *date, time_t *output); 265 static void skip(const char **date) in skip() argument 268 while(**date && !ISALNUM(**date)) in skip() 269 (*date)++; in skip() 306 static int parsedate(const char *date, time_t *output) in parsedate() argument 318 const char *indate = date; /* save the original pointer */ in parsedate() 321 while(*date && (part < 6)) { in parsedate() 324 skip(&date); in parsedate() 326 if(ISALPHA(*date)) { in parsedate() 330 if(sscanf(date, "%31[ABCDEFGHIJKLMNOPQRSTUVWXYZ" in parsedate() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/kokoro/scripts/linux/ |
D | build-docker.sh | 98 echo $(date): Starting build... 101 echo $(date): Build everything... 103 echo $(date): Build completed. 106 echo $(date): Check coverage... 108 echo $(date): Check coverage completed. 111 echo $(date): Starting ctest... 115 echo $(date): ctest completed. 145 echo $(date): Starting build... 148 echo $(date): Build glslang... 151 echo $(date): Build everything... [all …]
|
/third_party/skia/third_party/externals/spirv-tools/kokoro/scripts/linux/ |
D | build-docker.sh | 98 echo $(date): Starting build... 101 echo $(date): Build everything... 103 echo $(date): Build completed. 106 echo $(date): Check coverage... 108 echo $(date): Check coverage completed. 111 echo $(date): Starting ctest... 115 echo $(date): ctest completed. 145 echo $(date): Starting build... 148 echo $(date): Build glslang... 151 echo $(date): Build everything... [all …]
|
/third_party/node/deps/npm/node_modules/tiny-relative-date/src/ |
D | factory.js | 1 const calculateDelta = (now, date) => Math.round(Math.abs(now - date) / 1000) argument 4 return function relativeDate (date, now = new Date()) { argument 5 if (!(date instanceof Date)) { 6 date = new Date(date) 18 delta = calculateDelta(now, date) 21 date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0) 22 delta = calculateDelta(now, date) 30 } else if (now >= date) {
|