Home
last modified time | relevance | path

Searched refs:date (Results 1 – 25 of 2778) sorted by relevance

12345678910>>...112

/third_party/libsoup/libsoup/
Dsoup-date.c68 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 …]
/third_party/boost/libs/date_time/test/gregorian/
Dtestdate_iterator.cpp13 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 …]
Dtestdate.cpp20 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 …]
Dtestformat_date_parser.cpp70 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 …]
Dtestperiod.cpp15 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 …]
Dtestgreg_durations.cpp34 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 …]
Dtestgenerators.cpp21 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 …]
/third_party/libsoup/tests/
Ddate-test.c14 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/
Dtestdst_rules.cpp16 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 …]
Dtestgreg_duration_operators.cpp27 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 …]
/third_party/boost/boost/date_time/gregorian/
Dgreg_date.hpp38 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 …]
Dgregorian_types.hpp41 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 …]
Dparsers.hpp48 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 …]
/third_party/typescript/tests/baselines/reference/
DexternModule.types25 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/libs/icl/example/man_power_/
Dman_power.cpp40 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/
Dgdate.h129 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/python/Misc/NEWS.d/
D3.6.0b2.rst2 .. date: 9707
4 .. release date: 2016-10-10
12 .. date: 9706
21 .. date: 9705
31 .. date: 9704
41 .. date: 9703
51 .. date: 9702
61 .. date: 9701
71 .. date: 9700
81 .. date: 9699
[all …]
D3.5.0a1.rst2 .. date: 8948
4 .. release date: 2015-02-08
12 .. date: 8947
22 .. date: 8946
32 .. date: 8945
42 .. date: 8944
52 .. date: 8943
64 .. date: 8942
74 .. date: 8941
84 .. date: 8940
[all …]
D3.5.0b1.rst2 .. date: 9197
4 .. release date: 2015-05-24
12 .. date: 9196
22 .. date: 9195
32 .. date: 9194
41 .. date: 9193
50 .. date: 9192
60 .. date: 9191
69 .. date: 9190
78 .. date: 9189
[all …]
D3.5.3rc1.rst2 .. date: 9898
4 .. release date: 2017-01-02
12 .. date: 9897
21 .. date: 9896
31 .. date: 9895
41 .. date: 9894
50 .. date: 9893
60 .. date: 9892
70 .. date: 9891
80 .. date: 9890
[all …]
D3.6.0b1.rst2 .. date: 9619
4 .. release date: 2016-09-12
15 .. date: 9618
25 .. date: 9617
34 .. date: 9616
44 .. date: 9615
57 .. date: 9614
66 .. date: 9613
75 .. date: 9612
85 .. date: 9611
[all …]
D3.5.2rc1.rst2 .. date: 9673
4 .. release date: 2016-06-12
13 .. date: 9672
22 .. date: 9671
31 .. date: 9670
40 .. date: 9669
49 .. date: 9668
58 .. date: 9667
67 .. date: 9666
79 .. date: 9665
[all …]
D3.8.0a1.rst2 .. date: 2019-01-15-18-16-05
4 .. release date: 2019-02-03
15 .. date: 2018-11-23-15-00-23
27 .. date: 2018-09-24-18-49-25
38 .. date: 2018-09-11-18-30-55
49 .. date: 2018-09-10-16-05-39
59 .. date: 2018-08-15-12-12-47
68 .. date: 2018-06-26-19-35-33
79 .. date: 2018-05-28-08-55-30
88 .. date: 2018-03-25-12-05-43
[all …]
D3.6.0a4.rst2 .. date: 9455
4 .. release date: 2016-08-15
13 .. date: 9454
24 .. date: 9453
34 .. date: 9452
43 .. date: 9451
52 .. date: 9450
62 .. date: 9449
71 .. date: 9448
81 .. date: 9447
[all …]
/third_party/boost/boost/icl/
Dgregorian.hpp40 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 …]

12345678910>>...112