/external/libtextclassifier/native/utils/calendar/ |
D | calendar-common.h | 26 namespace calendar { 45 TCalendar* calendar, 54 TCalendar* calendar) const; 58 TCalendar* calendar) const; 69 bool allow_today, TCalendar* calendar) const; 94 bool prefer_future_for_unspecified_date, TCalendar* calendar, in InterpretParseData() argument 96 TC3_CALENDAR_CHECK(calendar->Initialize(reference_timezone, reference_locale, in InterpretParseData() 108 TC3_CALENDAR_CHECK(calendar->SetZoneOffset(zone_offset * kMillisInMinute)) in InterpretParseData() 115 TC3_CALENDAR_CHECK(calendar->SetDstOffset(dst_offset * kMillisInHour)) in InterpretParseData() 123 TC3_CALENDAR_CHECK(ApplyRelationField(relative_component, calendar)); in InterpretParseData() [all …]
|
/external/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 …]
|
/external/python/cpython3/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 …]
|
/external/python/cpython2/Lib/test/ |
D | test_calendar.py | 1 import calendar 199 self.normalize_calendar(calendar.calendar(2004)), 205 calendar.TextCalendar().formatyear(2004).strip(), 211 calendar.HTMLCalendar().formatyearpage(2004).strip(), 222 self.assertEqual(calendar.isleap(2000), 1) 223 self.assertEqual(calendar.isleap(2001), 0) 224 self.assertEqual(calendar.isleap(2002), 0) 225 self.assertEqual(calendar.isleap(2003), 0) 228 self.assertRaises(ValueError, calendar.setfirstweekday, 'flabber') 229 self.assertRaises(ValueError, calendar.setfirstweekday, -1) [all …]
|
/external/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 …]
|
/external/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 …]
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | XMPDateTimeImpl.java | 66 public XMPDateTimeImpl(Calendar calendar) in XMPDateTimeImpl() argument 69 Date date = calendar.getTime(); in XMPDateTimeImpl() 70 TimeZone zone = calendar.getTimeZone(); in XMPDateTimeImpl() 100 GregorianCalendar calendar = new GregorianCalendar(timeZone); in XMPDateTimeImpl() local 101 calendar.setTime(date); in XMPDateTimeImpl() 102 this.year = calendar.get(Calendar.YEAR); in XMPDateTimeImpl() 103 this.month = calendar.get(Calendar.MONTH) + 1; // cal is from 0..12 in XMPDateTimeImpl() 104 this.day = calendar.get(Calendar.DAY_OF_MONTH); in XMPDateTimeImpl() 105 this.hour = calendar.get(Calendar.HOUR_OF_DAY); in XMPDateTimeImpl() 106 this.minute = calendar.get(Calendar.MINUTE); in XMPDateTimeImpl() [all …]
|
/external/junit-params/src/test/java/junitparams/ |
D | ParamsConverterTest.java | 32 Calendar calendar = createCalendarWithDate(date); in convertSingleParam() local 33 assertCalendarDate(calendar); in convertSingleParam() 41 Calendar calendar = createCalendarWithDate(date); in convertMultipleParams() local 42 assertCalendarDate(calendar); in convertMultipleParams() 50 Calendar calendar = createCalendarWithDate(date); in convertParamsFromMethod() local 51 assertCalendarDate(calendar); in convertParamsFromMethod() 57 Calendar calendar = createCalendarWithDate(date); in convertParamsUsingParamAnnotation() local 58 assertCalendarDate(calendar); in convertParamsUsingParamAnnotation() 64 Calendar calendar = createCalendarWithDate(date); in convertParamsUsingCustomParamAnnotation() local 65 assertCalendarDate(calendar); in convertParamsUsingCustomParamAnnotation() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | EasterHoliday.java | 157 calendar.setGregorianChange(new Date(Long.MAX_VALUE)); in EasterRule() 186 synchronized(calendar) { in isOn() 187 calendar.setTime(date); in isOn() 188 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); in isOn() 190 calendar.setTime(computeInYear(calendar.getTime(), calendar)); in isOn() local 192 return calendar.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn() 210 synchronized(calendar) { in doFirstBetween() 212 Date result = computeInYear(start, calendar); in doFirstBetween() 220 calendar.setTime(start); in doFirstBetween() 221 calendar.get(Calendar.YEAR); // JDK 1.1.2 bug workaround in doFirstBetween() [all …]
|
/external/icu/android_icu4j/src/main/java/android/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 …]
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/ |
D | ISO8601Utils.java | 69 Calendar calendar = new GregorianCalendar(tz, loc); in format() local 70 calendar.setTime(date); in format() 76 calendar.get(Calendar.YEAR), in format() 77 calendar.get(Calendar.MONTH) + 1, in format() 78 calendar.get(Calendar.DAY_OF_MONTH), in format() 79 calendar.get(Calendar.HOUR_OF_DAY), in format() 80 calendar.get(Calendar.MINUTE), in format() 81 calendar.get(Calendar.SECOND) in format() 84 sb.append(String.format(".%03d", calendar.get(Calendar.MILLISECOND))); in format() 87 int offset = tz.getOffset(calendar.getTimeInMillis()); in format() [all …]
|
/external/libtextclassifier/native/utils/java/ |
D | jni-cache.cc | 190 TC3_GET_CLASS_OR_RETURN_NULL(calendar, "java/util/Calendar"); in Create() 192 calendar, get_instance, "getInstance", in Create() 194 TC3_GET_METHOD(calendar, get_first_day_of_week, "getFirstDayOfWeek", "()I"); in Create() 195 TC3_GET_METHOD(calendar, get_time_in_millis, "getTimeInMillis", "()J"); in Create() 196 TC3_GET_METHOD(calendar, set_time_in_millis, "setTimeInMillis", "(J)V"); in Create() 197 TC3_GET_METHOD(calendar, add, "add", "(II)V"); in Create() 198 TC3_GET_METHOD(calendar, get, "get", "(I)I"); in Create() 199 TC3_GET_METHOD(calendar, set, "set", "(II)V"); in Create() 200 TC3_GET_STATIC_INT_FIELD(calendar, zone_offset, "ZONE_OFFSET"); in Create() 201 TC3_GET_STATIC_INT_FIELD(calendar, dst_offset, "DST_OFFSET"); in Create() [all …]
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestCoverageLevel.txt | 1 ^//ldml/dates/calendars/calendar\[@type="(?!gregorian)[^"]*"] ; 100 7 ^//ldml/dates/calendars/calendar\[@type=".*"]/dateTimeFormats/appendItems/appendItem\[@request=".*"… 8 ^//ldml/dates/calendars/calendar\[@type=".*"]/dayPeriods/dayPeriodContext\[@type=".*"]/dayPeriodWid… 29 ^//ldml/dates/calendars/calendar\[@type=".*"]/dateFormats/dateFormatLength\[@type="(long|short)"]/d… 30 ^//ldml/dates/calendars/calendar\[@type=".*"]/dateTimeFormats/intervalFormats/intervalFormatItem\[@… 31 ^//ldml/dates/calendars/calendar\[@type=".*"]/dayPeriods/dayPeriodContext\[@type=".*"]/dayPeriodWid… 32 ^//ldml/dates/calendars/calendar\[@type=".*"]/eras/eraAbbr/era\[@type=".*"] ; 30 34 ^//ldml/dates/calendars/calendar\[@type=".*"]/days/dayContext\[@type="format"]/dayWidth\[@type="nar… 35 ^//ldml/dates/calendars/calendar\[@type=".*"]/days/dayContext\[@type="format"]/dayWidth\[@type="wid… 36 ^//ldml/dates/calendars/calendar\[@type=".*"]/days/dayContext\[@type="stand-alone"]/dayWidth\[@type… [all …]
|
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/i18n/timezone/ |
D | WallTime.java | 60 private final GregorianCalendar calendar; field in WallTime 75 this.calendar = new GregorianCalendar(0, 0, 0, 0, 0, 0); in WallTime() 76 calendar.setTimeZone(TimeZone.getTimeZone("UTC")); in WallTime() 114 calendar.setTimeInMillis(wallTimeSeconds * 1000L); in localtime() 153 final long longWallTimeSeconds = calendar.getTimeInMillis() / 1000; in mktime() 256 calendar.setTimeInMillis(adjustedWallTimeSeconds * 1000L); 538 calendar.set(Calendar.YEAR, year); 539 calendar.set(Calendar.MONTH, month); 540 calendar.set(Calendar.DAY_OF_MONTH, monthDay); 541 calendar.set(Calendar.HOUR_OF_DAY, hour); [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue49/ |
D | CalendarTest.java | 104 Calendar calendar = bean.getCalendar(); in testLoadBean() local 105 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), in testLoadBean() 106 calendar.getTimeZone().getOffset(calendar.getTime().getTime())); in testLoadBean() 110 assertEquals(date, calendar.getTime()); in testLoadBean() 115 GregorianCalendar calendar = (GregorianCalendar) yaml in testLoadWithTag() local 117 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), in testLoadWithTag() 118 calendar.getTimeZone().getOffset(calendar.getTime().getTime())); in testLoadWithTag() 121 assertEquals(date, calendar.getTime()); in testLoadWithTag()
|
D | CalendarBean.java | 21 private Calendar calendar; field in CalendarBean 33 return calendar; in getCalendar() 36 public void setCalendar(Calendar calendar) { in setCalendar() argument 37 this.calendar = calendar; in setCalendar()
|
/external/perfetto/test/trace_processor/startup/ |
D | android_startup_process_track.out | 4 package_name: "com.google.android.calendar" 5 process_name: "com.google.android.calendar" 7 name: "com.google.android.calendar" 35 package_name: "com.google.android.calendar" 36 process_name: "com.google.android.calendar" 38 name: "com.google.android.calendar"
|
D | android_startup.out | 4 package_name: "com.google.android.calendar" 5 process_name: "com.google.android.calendar" 7 name: "com.google.android.calendar" 10 package_name: "com.google.android.calendar" 15 package_name: "com.google.android.calendar"
|
/external/cldr/tools/java/org/unicode/cldr/util/data/ |
D | PathHeader.txt | 8 # The only function that can be in Page right now are &metazone and &calendar, and NO functions can… 72 //ldml/dates/calendars/calendar[@type="%R"]/eras/eraAbbr/era[@type="%A"] ; DateTime ; &calendar($… 73 //ldml/dates/calendars/calendar[@type="%R"]/eras/eraNames/era[@type="%A"] ; DateTime ; &calendar($… 74 //ldml/dates/calendars/calendar[@type="%R"]/eras/eraNarrow/era[@type="%A"] ; DateTime ; &calendar($… 75 //ldml/dates/calendars/calendar[@type="%A"]/eras/eraAbbr/era[@type="%A"] ; Special ; Suppress ; … 76 //ldml/dates/calendars/calendar[@type="%A"]/eras/eraNames/era[@type="%A"] ; Special ; Suppress ; … 77 //ldml/dates/calendars/calendar[@type="%A"]/eras/eraNarrow/era[@type="%A"] ; Special ; Suppress ; … 79 …alendars/calendar[@type="gregorian"]/quarters/quarterContext[@type="%A"]/quarterWidth[@type="%A"]/… 80 …endars/calendar[@type="%A"]/quarters/quarterContext[@type="%A"]/quarterWidth[@type="%A"]/quarter[@… 82 …calendars/calendar[@type="%O"]/months/monthContext[@type="%A"]/monthWidth[@type="%A"]/month[@type=… [all …]
|
/external/apache-http/android/src/android/net/http/ |
D | LegacyHttpDateTime.java | 112 GregorianCalendar calendar = new GregorianCalendar(utc); in parse() local 113 calendar.set(Calendar.YEAR, year); in parse() 114 calendar.set(Calendar.MONTH, month); in parse() 115 calendar.set(Calendar.DAY_OF_MONTH, date); in parse() 116 calendar.set(Calendar.HOUR_OF_DAY, timeOfDay.hour); in parse() 117 calendar.set(Calendar.MINUTE, timeOfDay.minute); in parse() 118 calendar.set(Calendar.SECOND, timeOfDay.second); in parse() 119 calendar.set(Calendar.MILLISECOND, 0); in parse() 120 return calendar.getTimeInMillis(); in parse()
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/representer/ |
D | SafeRepresenter.java | 326 Calendar calendar; in representData() local 328 calendar = (Calendar) data; in representData() 330 calendar = Calendar.getInstance(getTimeZone() == null ? TimeZone.getTimeZone("UTC") in representData() 332 calendar.setTime((Date) data); in representData() 334 int years = calendar.get(Calendar.YEAR); in representData() 335 int months = calendar.get(Calendar.MONTH) + 1; // 0..12 in representData() 336 int days = calendar.get(Calendar.DAY_OF_MONTH); // 1..31 in representData() 337 int hour24 = calendar.get(Calendar.HOUR_OF_DAY); // 0..24 in representData() 338 int minutes = calendar.get(Calendar.MINUTE); // 0..59 in representData() 339 int seconds = calendar.get(Calendar.SECOND); // 0..59 in representData() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowDateUtilsTest.java | 59 Calendar calendar = Calendar.getInstance(); in formatDateTime_withCurrentYear_worksPreKitKat() local 60 final int currentYear = calendar.get(Calendar.YEAR); in formatDateTime_withCurrentYear_worksPreKitKat() 86 Calendar calendar = Calendar.getInstance(); in getMillisAtStartOfYear() local 87 final int currentYear = calendar.get(Calendar.YEAR); in getMillisAtStartOfYear() 88 calendar.setTimeZone(TimeZone.getTimeZone("GMT-8:00")); in getMillisAtStartOfYear() 89 calendar.set(currentYear, Calendar.JANUARY, 1, 0, 0, 0); in getMillisAtStartOfYear() 91 return calendar.getTimeInMillis(); in getMillisAtStartOfYear()
|
/external/python/cpython2/Doc/library/ |
D | calendar.rst | 1 :mod:`calendar` --- General calendar-related functions 4 .. module:: calendar 9 **Source code:** :source:`Lib/calendar.py` 14 and provides additional useful functions related to the calendar. By default, 22 uses an idealized calendar, the current Gregorian calendar indefinitely extended 24 calendar in Dershowitz and Reingold's book "Calendrical Calculations", where 25 it's the base calendar for all computations. 34 preparing the calendar data for formatting. This class doesn't do any formatting 122 Return a month's calendar in a multi-line string. If *w* is provided, it 131 Print a month's calendar as returned by :meth:`formatmonth`. [all …]
|
/external/python/cpython2/Demo/scripts/ |
D | unbirthday.py | 10 import calendar 37 if month == 2 and calendar.isleap(year): 40 maxday = calendar.mdays[month] 79 return '%d %s %d' % (day, calendar.month_name[month], year) 96 if i == 2 and calendar.isleap(year): 99 days = days + calendar.mdays[i]
|