/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
D | Calendar.java | 614 public final java.util.Calendar calendar; field in Calendar 621 this.calendar = delegate; in Calendar() 1203 calendar = java.util.Calendar.getInstance(zone.timeZone, locale.toLocale()); in Calendar() 1332 return calendar.getTime(); in getTime() 1345 calendar.setTime(date); in setTime() 1354 return calendar.getTimeInMillis(); in getTimeInMillis() 1363 calendar.setTimeInMillis(millis); in setTimeInMillis() 1374 return calendar.get(getJDKField(field)); in get() 1385 calendar.set(getJDKField(field), value); in set() 1400 calendar.set(getJDKField(YEAR), year); in set() [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 329 cal = calendar.HTMLCalendar() 337 self.normalize_calendar(calendar.calendar(2004)), 343 calendar.TextCalendar().formatyear(2004), 362 shrink(calendar.Calendar().yeardatescalendar(2004)), 368 calendar.Calendar().yeardayscalendar(2004), 374 calendar.TextCalendar().formatweekheader(2), 380 calendar.TextCalendar().formatweekheader(9), 387 calendar.TextCalendar().formatmonth(2004, 1), 393 calendar.HTMLCalendar().formatmonthname(2004, 1, withyear=True), [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/icu4c/source/data/locales/ |
D | root.txt | 176 calendar{ 178 AmPmMarkers:alias{"/LOCALE/calendar/gregorian/AmPmMarkers"} 179 AmPmMarkersNarrow:alias{"/LOCALE/calendar/gregorian/AmPmMarkersNarrow"} 180 DateTimePatterns:alias{"/LOCALE/calendar/generic/DateTimePatterns"} 181 NoonMarker:alias{"/LOCALE/calendar/gregorian/NoonMarker"} 182 NoonMarkerNarrow:alias{"/LOCALE/calendar/gregorian/NoonMarkerNarrow"} 183 appendItems:alias{"/LOCALE/calendar/generic/appendItems"} 184 availableFormats:alias{"/LOCALE/calendar/generic/availableFormats"} 185 dayNames:alias{"/LOCALE/calendar/gregorian/dayNames"} 190 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 | 158 calendar = orthodox; in EasterRule() 187 synchronized(calendar) { in isOn() 188 calendar.setTime(date); in isOn() 189 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); in isOn() 191 calendar.setTime(computeInYear(calendar.getTime(), calendar)); in isOn() local 193 return calendar.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn() 211 synchronized(calendar) { in doFirstBetween() 213 Date result = computeInYear(start, calendar); in doFirstBetween() 221 calendar.setTime(start); in doFirstBetween() 222 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 | 144 calendar = orthodox; in EasterRule() 173 synchronized(calendar) { in isOn() 174 calendar.setTime(date); in isOn() 175 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); in isOn() 177 calendar.setTime(computeInYear(calendar.getTime(), calendar)); in isOn() local 179 return calendar.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn() 197 synchronized(calendar) { in doFirstBetween() 199 Date result = computeInYear(start, calendar); in doFirstBetween() 207 calendar.setTime(start); in doFirstBetween() 208 calendar.get(Calendar.YEAR); // JDK 1.1.2 bug workaround in doFirstBetween() [all …]
|
/external/libtextclassifier/util/calendar/ |
D | calendar_test.cc | 29 CalendarLib calendar; in TEST() local 32 bool result = calendar.InterpretParseData( in TEST() 42 CalendarLib calendar; in TEST() local 56 ASSERT_TRUE(calendar.InterpretParseData( in TEST() 63 ASSERT_TRUE(calendar.InterpretParseData( in TEST() 70 ASSERT_TRUE(calendar.InterpretParseData( in TEST() 77 ASSERT_TRUE(calendar.InterpretParseData( in TEST() 84 ASSERT_TRUE(calendar.InterpretParseData( in TEST() 91 ASSERT_TRUE(calendar.InterpretParseData( in TEST() 98 ASSERT_TRUE(calendar.InterpretParseData( in TEST() [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/google-tv-pairing-protocol/java/src/com/google/polo/ssl/ |
D | SslUtil.java | 102 Calendar calendar = Calendar.getInstance(); in generateX509V1Certificate() local 103 calendar.set(2009, 0, 1); in generateX509V1Certificate() 104 Date startDate = new Date(calendar.getTimeInMillis()); in generateX509V1Certificate() 105 calendar.set(2029, 0, 1); in generateX509V1Certificate() 106 Date expiryDate = new Date(calendar.getTimeInMillis()); in generateX509V1Certificate() 250 Calendar calendar = Calendar.getInstance(); in generateX509V3Certificate() local 251 calendar.set(2009, 0, 1); in generateX509V3Certificate() 252 Date notBefore = new Date(calendar.getTimeInMillis()); in generateX509V3Certificate() 253 calendar.set(2099, 0, 1); in generateX509V3Certificate() 254 Date notAfter = new Date(calendar.getTimeInMillis()); in generateX509V3Certificate() [all …]
|
D | CsrUtil.java | 48 Calendar calendar = Calendar.getInstance(); in generateX509V3AuthorityCertificate() local 49 calendar.add(Calendar.DAY_OF_YEAR, NOT_BEFORE_NUMBER_OF_DAYS); in generateX509V3AuthorityCertificate() 50 Date notBefore = new Date(calendar.getTimeInMillis()); in generateX509V3AuthorityCertificate() 51 calendar.add(Calendar.DAY_OF_YEAR, NOT_AFTER_NUMBER_OF_DAYS); in generateX509V3AuthorityCertificate() 52 Date notAfter = new Date(calendar.getTimeInMillis()); in generateX509V3AuthorityCertificate() 109 Calendar calendar = Calendar.getInstance(); in issueX509V3Certificate() local 110 calendar.add(Calendar.DAY_OF_YEAR, NOT_BEFORE_NUMBER_OF_DAYS); in issueX509V3Certificate() 111 Date notBefore = new Date(calendar.getTimeInMillis()); in issueX509V3Certificate() 112 calendar.add(Calendar.DAY_OF_YEAR, NOT_AFTER_NUMBER_OF_DAYS); in issueX509V3Certificate() 113 Date notAfter = new Date(calendar.getTimeInMillis()); in issueX509V3Certificate()
|
/external/python/cpython3/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 uses an idealized calendar, the current Gregorian calendar extended 25 calendar in Dershowitz and Reingold's book "Calendrical Calculations", where 26 it's the base calendar for all computations. 35 preparing the calendar data for formatting. This class doesn't do any formatting 118 Return a month's calendar in a multi-line string. If *w* is provided, it 127 Print a month's calendar as returned by :meth:`formatmonth`. [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 10 package android.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 …]
|
/external/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 …]
|
/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/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/icu/icu4c/source/test/intltest/ |
D | calregts.cpp | 338 Calendar *calendar = new GregorianCalendar(pdt, status); in test4040996() local 343 calendar->set(UCAL_MONTH,3); in test4040996() 344 calendar->set(UCAL_DATE,18); in test4040996() 345 calendar->set(UCAL_SECOND, 30); in test4040996() 347 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996() 349 calendar->get(UCAL_DATE, status)); in test4040996() 350 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status)); in test4040996() 351 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status)); in test4040996() 353 calendar->add(UCAL_SECOND,6, status); in test4040996() 357 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DateFormat.java | 153 protected Calendar calendar; field in DateFormat 617 calendar.setTime(date); in format() 618 return format(calendar, toAppendTo, fieldPosition); in format() 750 TimeZone tzsav = calendar.getTimeZone(); in parse() 751 calendar.clear(); in parse() 752 parse(text, calendar, pos); in parse() 755 result = calendar.getTime(); in parse() 765 calendar.setTimeZone(tzsav); in parse() 1442 this.calendar = newCalendar; in setCalendar() 1451 return calendar; in getCalendar() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateFormat.java | 154 protected Calendar calendar; field in DateFormat 664 calendar.setTime(date); in format() 665 return format(calendar, toAppendTo, fieldPosition); in format() 801 TimeZone tzsav = calendar.getTimeZone(); in parse() 802 calendar.clear(); in parse() 803 parse(text, calendar, pos); in parse() 806 result = calendar.getTime(); in parse() 816 calendar.setTimeZone(tzsav); in parse() 1554 this.calendar = newCalendar; in setCalendar() 1564 return calendar; in getCalendar() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowDateUtilsTest.java | 44 Calendar calendar = Calendar.getInstance(); in formatDateTime_withCurrentYear_worksPreKitKat() local 45 final int currentYear = calendar.get(Calendar.YEAR); in formatDateTime_withCurrentYear_worksPreKitKat() 69 Calendar calendar = Calendar.getInstance(); in getMillisAtStartOfYear() local 70 final int currentYear = calendar.get(Calendar.YEAR); in getMillisAtStartOfYear() 71 calendar.setTimeZone(TimeZone.getTimeZone("GMT-8:00")); in getMillisAtStartOfYear() 72 calendar.set(currentYear, Calendar.JANUARY, 1, 0, 0, 0); in getMillisAtStartOfYear() 74 return calendar.getTimeInMillis(); in getMillisAtStartOfYear()
|
/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]
|