/third_party/icu/icu4c/source/test/testdata/ |
D | calendar.txt | 5 calendar:table(nofallback) { 7 Description { "These are the data driven calendar tests" } 8 LongDescription { "Data for data driven calendar tests." } 14 Description { "Test data for calendar conversion :" } 18 ToCalendar { "en_US@calendar=gregorian" } 22 ToCalendar { "en_US@calendar=gregorian" } 27 // taiwanese calendar 30 "en_US@calendar=roc", 35 "en_US@calendar=roc", 40 "en_US@calendar=roc", [all …]
|
D | format.txt | 25 // locale: locale including calendar type 29 …// or a calendar spec ERA=0,YEAR=1, etc.. applied to the calendar type specified by the loc… 36 "en_US@calendar=gregorian", 43 "zh_TW@calendar=roc", 51 "zh_TW@calendar=roc", 71 "en_US@calendar=gregorian", 78 "en_US@calendar=gregorian", 85 "en_US@calendar=gregorian", 93 "en_US@calendar=gregorian", 101 "en_US@calendar=gregorian", [all …]
|
/third_party/python/Lib/test/ |
D | test_calendar.py | 1 import calendar 382 cal = calendar.HTMLCalendar() 393 self.normalize_calendar(calendar.calendar(2004)), 397 self.normalize_calendar(calendar.calendar(0)), 403 calendar.TextCalendar().formatyear(2004), 407 calendar.TextCalendar().formatyear(0), 426 shrink(calendar.Calendar().yeardatescalendar(2004)), 432 calendar.Calendar().yeardayscalendar(2004), 438 calendar.TextCalendar().formatweekheader(2), 444 calendar.TextCalendar().formatweekheader(9), [all …]
|
/third_party/icu/icu4c/source/data/locales/ |
D | root.txt | 179 calendar{ 181 AmPmMarkers:alias{"/LOCALE/calendar/gregorian/AmPmMarkers"} 182 AmPmMarkersNarrow:alias{"/LOCALE/calendar/gregorian/AmPmMarkersNarrow"} 183 DateTimePatterns:alias{"/LOCALE/calendar/generic/DateTimePatterns"} 184 NoonMarker:alias{"/LOCALE/calendar/gregorian/NoonMarker"} 185 NoonMarkerNarrow:alias{"/LOCALE/calendar/gregorian/NoonMarkerNarrow"} 186 appendItems:alias{"/LOCALE/calendar/generic/appendItems"} 187 availableFormats:alias{"/LOCALE/calendar/generic/availableFormats"} 188 dayNames:alias{"/LOCALE/calendar/gregorian/dayNames"} 193 narrow:alias{"/LOCALE/calendar/buddhist/eras/abbreviated"} [all …]
|
/third_party/skia/third_party/externals/icu/source/data/locales/ |
D | root.txt | 179 calendar{ 181 AmPmMarkers:alias{"/LOCALE/calendar/gregorian/AmPmMarkers"} 182 AmPmMarkersNarrow:alias{"/LOCALE/calendar/gregorian/AmPmMarkersNarrow"} 183 DateTimePatterns:alias{"/LOCALE/calendar/generic/DateTimePatterns"} 184 NoonMarker:alias{"/LOCALE/calendar/gregorian/NoonMarker"} 185 NoonMarkerNarrow:alias{"/LOCALE/calendar/gregorian/NoonMarkerNarrow"} 186 appendItems:alias{"/LOCALE/calendar/generic/appendItems"} 187 availableFormats:alias{"/LOCALE/calendar/generic/availableFormats"} 188 dayNames:alias{"/LOCALE/calendar/gregorian/dayNames"} 193 narrow:alias{"/LOCALE/calendar/buddhist/eras/abbreviated"} [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/data/locales/ |
D | root.txt | 178 calendar{ 180 AmPmMarkers:alias{"/LOCALE/calendar/gregorian/AmPmMarkers"} 181 AmPmMarkersNarrow:alias{"/LOCALE/calendar/gregorian/AmPmMarkersNarrow"} 182 DateTimePatterns:alias{"/LOCALE/calendar/generic/DateTimePatterns"} 183 NoonMarker:alias{"/LOCALE/calendar/gregorian/NoonMarker"} 184 NoonMarkerNarrow:alias{"/LOCALE/calendar/gregorian/NoonMarkerNarrow"} 185 appendItems:alias{"/LOCALE/calendar/generic/appendItems"} 186 availableFormats:alias{"/LOCALE/calendar/generic/availableFormats"} 187 dayNames:alias{"/LOCALE/calendar/gregorian/dayNames"} 192 narrow:alias{"/LOCALE/calendar/buddhist/eras/abbreviated"} [all …]
|
/third_party/icu/tools/cldr/cldr-to-icu/src/main/resources/ |
D | ldml2icu_locale.txt | 28 //ldml/dates/calendars/calendar[@type="(%A)"]/alias[@source="locale"][@path="../calendar[@type='(%A… 29 ; /calendar/$1lo ; values=/LOCALE/calendar/$2 31 //ldml/dates/calendars/calendar[@type="(%A)"]/dayPeriods/alias[@source="locale"][@path="../../calen… 32 ; /calendar/$1/AmPmMarkers:alias ; values=/LOCALE/calendar/$2/AmPmMarkers 33 ; /calendar/$1/AmPmMarkersNarrow:alias ; values=/LOCALE/calendar/$2/AmPmMarkersNarrow 34 ; /calendar/$1/NoonMarker:alias ; values=/LOCALE/calendar/$2/NoonMarker 35 ; /calendar/$1/NoonMarkerNarrow:alias ; values=/LOCALE/calendar/$2/NoonMarkerNarrow 37 //ldml/dates/calendars/calendar[@type="gregorian"]/dayPeriods/dayPeriodContext[@type="format"]/dayP… 38 ; /calendar/gregorian/AmPmMarkers:alias ; values=/LOCALE/calendar/gregorian/AmPmMarkersAbbr 39 //ldml/dates/calendars/calendar[@type="gregorian"]/dayPeriods/dayPeriodContext[@type="format"]/dayP… [all …]
|
/third_party/boost/boost/date_time/ |
D | date.hpp | 53 template<class T, class calendar, class duration_type_> 61 typedef calendar calendar_type; 62 typedef typename calendar::date_traits_type traits_type; 64 typedef typename calendar::year_type year_type; 65 typedef typename calendar::month_type month_type; 66 typedef typename calendar::day_type day_type; 67 typedef typename calendar::ymd_type ymd_type; 68 typedef typename calendar::date_rep_type date_rep_type; 69 typedef typename calendar::date_int_type date_int_type; 70 typedef typename calendar::day_of_week_type day_of_week_type; [all …]
|
/third_party/boost/libs/locale/src/shared/ |
D | date_time.cpp | 24 calendar::calendar(std::locale const &l,std::string const &zone) : in calendar() function in boost::locale::calendar 32 calendar::calendar(std::string const &zone) : in calendar() function in boost::locale::calendar 40 calendar::calendar(std::locale const &l) : in calendar() function in boost::locale::calendar 48 calendar::calendar(std::ios_base &ios) : in calendar() function in boost::locale::calendar 57 calendar::calendar() : in calendar() function in boost::locale::calendar 64 calendar::~calendar() in ~calendar() 68 calendar::calendar(calendar const &other) : in calendar() function in boost::locale::calendar 75 calendar const &calendar::operator = (calendar const &other) in operator =() 86 bool calendar::is_gregorian() const in is_gregorian() 91 std::string calendar::get_time_zone() const in get_time_zone() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | EasterHoliday.java | 141 calendar.setGregorianChange(new Date(Long.MAX_VALUE)); in EasterRule() 170 synchronized(calendar) { in isOn() 171 calendar.setTime(date); in isOn() 172 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); in isOn() 174 calendar.setTime(computeInYear(calendar.getTime(), calendar)); in isOn() local 176 return calendar.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn() 194 synchronized(calendar) { in doFirstBetween() 196 Date result = computeInYear(start, calendar); in doFirstBetween() 204 calendar.setTime(start); in doFirstBetween() 205 calendar.get(Calendar.YEAR); // JDK 1.1.2 bug workaround in doFirstBetween() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | EasterHoliday.java | 143 calendar.setGregorianChange(new Date(Long.MAX_VALUE)); in EasterRule() 172 synchronized(calendar) { in isOn() 173 calendar.setTime(date); in isOn() 174 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); in isOn() 176 calendar.setTime(computeInYear(calendar.getTime(), calendar)); in isOn() local 178 return calendar.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn() 196 synchronized(calendar) { in doFirstBetween() 198 Date result = computeInYear(start, calendar); in doFirstBetween() 206 calendar.setTime(start); in doFirstBetween() 207 calendar.get(Calendar.YEAR); // JDK 1.1.2 bug workaround in doFirstBetween() [all …]
|
/third_party/icu/docs/userguide/datetime/calendar/ |
D | index.md | 25 ICU has two main calendar classes used for parsing and formatting Calendar 30 An abstract base class that defines the calendar API. This API supports 35 A concrete subclass of `Calendar` that implements the standard calendar used 61 The `Calendar` class is designed to support additional calendar systems in the future. 68 When a calendar object is created, via either `Calendar::create()`, or 70 calendar type for that locale. At present, all locales default to a Gregorian 71 calendar, except for the compatibility locales th_TH_TRADITIONAL and 72 ja_JP_TRADITIONAL. If the "calendar" keyword is supplied, this value will 75 For instance, `Calendar::createInstance("fr_FR", status)` will create a Gregorian calendar, 76 but `Calendar::createInstance("fr_FR@calendar=buddhist")` will create a Buddhist calendar. [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 10 package ohos.global.icu.dev.test.calendar; 167 Calendar calendar = new GregorianCalendar(pdt); in Test4040996() local 169 calendar.set(Calendar.MONTH,3); in Test4040996() 170 calendar.set(Calendar.DAY_OF_MONTH,18); in Test4040996() 171 calendar.set(Calendar.SECOND, 30); in Test4040996() 173 logln("MONTH: " + calendar.get(Calendar.MONTH)); in Test4040996() 175 calendar.get(Calendar.DAY_OF_MONTH)); in Test4040996() 176 logln("MINUTE: " + calendar.get(Calendar.MINUTE)); in Test4040996() 177 logln("SECOND: " + calendar.get(Calendar.SECOND)); in Test4040996() 179 calendar.add(Calendar.SECOND,6); in Test4040996() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | DateFormat.java | 153 protected Calendar calendar; field in DateFormat 648 calendar.setTime(date); in format() 649 return format(calendar, toAppendTo, fieldPosition); in format() 781 TimeZone tzsav = calendar.getTimeZone(); in parse() 782 calendar.clear(); in parse() 783 parse(text, calendar, pos); in parse() 786 result = calendar.getTime(); in parse() 796 calendar.setTimeZone(tzsav); in parse() 1499 this.calendar = newCalendar; in setCalendar() 1508 return calendar; in getCalendar() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateFormat.java | 154 protected Calendar calendar; field in DateFormat 694 calendar.setTime(date); in format() 695 return format(calendar, toAppendTo, fieldPosition); in format() 831 TimeZone tzsav = calendar.getTimeZone(); in parse() 832 calendar.clear(); in parse() 833 parse(text, calendar, pos); in parse() 836 result = calendar.getTime(); in parse() 846 calendar.setTimeZone(tzsav); in parse() 1609 this.calendar = newCalendar; in setCalendar() 1619 return calendar; in getCalendar() [all …]
|
/third_party/python/Doc/library/ |
D | calendar.rst | 1 :mod:`calendar` --- General calendar-related functions 4 .. module:: calendar 10 **Source code:** :source:`Lib/calendar.py` 15 and provides additional useful functions related to the calendar. By default, 23 use an idealized calendar, the current Gregorian calendar extended indefinitely 25 calendar in Dershowitz and Reingold's book "Calendrical Calculations", where 26 it's the base calendar for all computations. Zero and negative years are 37 preparing the calendar data for formatting. This class doesn't do any formatting 143 Return a month's calendar in a multi-line string. If *w* is provided, it 152 Print a month's calendar as returned by :meth:`formatmonth`. [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 9 package com.ibm.icu.dev.test.calendar; 164 Calendar calendar = new GregorianCalendar(pdt); in Test4040996() local 166 calendar.set(Calendar.MONTH,3); in Test4040996() 167 calendar.set(Calendar.DAY_OF_MONTH,18); in Test4040996() 168 calendar.set(Calendar.SECOND, 30); in Test4040996() 170 logln("MONTH: " + calendar.get(Calendar.MONTH)); in Test4040996() 172 calendar.get(Calendar.DAY_OF_MONTH)); in Test4040996() 173 logln("MINUTE: " + calendar.get(Calendar.MINUTE)); in Test4040996() 174 logln("SECOND: " + calendar.get(Calendar.SECOND)); in Test4040996() 176 calendar.add(Calendar.SECOND,6); in Test4040996() [all …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | calregts.cpp | 342 Calendar *calendar = new GregorianCalendar(pdt, status); in test4040996() local 347 calendar->set(UCAL_MONTH,3); in test4040996() 348 calendar->set(UCAL_DATE,18); in test4040996() 349 calendar->set(UCAL_SECOND, 30); in test4040996() 351 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996() 353 calendar->get(UCAL_DATE, status)); in test4040996() 354 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status)); in test4040996() 355 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status)); in test4040996() 357 calendar->add(UCAL_SECOND,6, status); in test4040996() 361 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996() [all …]
|
/third_party/mesa3d/bin/ |
D | post_version.py | 59 calendar = list(csv.reader(f)) 62 for i, line in enumerate(calendar): 68 calendar[i + 1][0] = branch 69 del calendar[i] 73 writer.writerows(calendar)
|
/third_party/boost/boost/locale/ |
D | date_time.hpp | 473 class BOOST_LOCALE_DECL calendar { class 482 calendar(std::ios_base &ios); 488 calendar(std::locale const &l,std::string const &zone); 494 calendar(std::locale const &l); 500 calendar(std::string const &zone); 506 calendar(); 507 ~calendar(); 512 calendar(calendar const &other); 516 calendar const &operator=(calendar const &other); 556 bool operator==(calendar const &other) const; [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | coptccal.cpp | 111 CopticCalendar calendar(Locale("@calendar=coptic"), status); in initializeSystemDefaultCentury() local 113 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 114 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 115 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 116 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | coptccal.cpp | 111 CopticCalendar calendar(Locale("@calendar=coptic"), status); in initializeSystemDefaultCentury() local 113 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 114 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 115 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 116 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | coptccal.cpp | 111 CopticCalendar calendar(Locale("@calendar=coptic"), status); in initializeSystemDefaultCentury() local 113 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 114 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 115 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 116 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
/third_party/icu/icu4c/source/i18n/ |
D | coptccal.cpp | 111 CopticCalendar calendar(Locale("@calendar=coptic"), status); in initializeSystemDefaultCentury() local 113 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 114 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 115 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 116 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
/third_party/boost/libs/locale/test/ |
D | test_date_time.cpp | 67 calendar cal(loc,tz); in main() 69 TEST(calendar() == cal); in main() 70 TEST(calendar(loc) == cal); in main() 71 TEST(calendar(tz) == cal); in main() 72 TEST(calendar(loc,"GMT+01:00") != cal); in main() 73 TEST(calendar(g("ru_RU.UTF-8")) != cal); in main() 82 TEST(calendar(g("ar_EG.UTF-8")).first_day_of_week() == 7); in main() 83 TEST(calendar(g("he_IL.UTF-8")).first_day_of_week() == 1); in main() 84 TEST(calendar(g("ru_RU.UTF-8")).first_day_of_week() == 2); in main() 183 time_point=date_time(a_datetime,calendar(g("ru_RU.UTF-8"))); in main() [all …]
|