/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
D | Calendar.java | 612 public final java.util.Calendar calendar; field in Calendar 619 this.calendar = delegate; in Calendar() 1201 calendar = java.util.Calendar.getInstance(zone.timeZone, locale.toLocale()); in Calendar() 1330 return calendar.getTime(); in getTime() 1343 calendar.setTime(date); in setTime() 1352 return calendar.getTimeInMillis(); in getTimeInMillis() 1361 calendar.setTimeInMillis(millis); in setTimeInMillis() 1372 return calendar.get(getJDKField(field)); in get() 1383 calendar.set(getJDKField(field), value); in set() 1398 calendar.set(getJDKField(YEAR), year); in set() [all …]
|
/external/icu/icu4c/source/test/testdata/ |
D | calendar.txt | 3 calendar:table(nofallback) { 5 Description { "These are the data driven calendar tests" } 6 LongDescription { "Data for data driven calendar tests." } 12 Description { "Test data for calendar conversion :" } 16 ToCalendar { "en_US@calendar=gregorian" } 20 ToCalendar { "en_US@calendar=gregorian" } 25 // taiwanese calendar 28 "en_US@calendar=roc", 33 "en_US@calendar=roc", 38 "en_US@calendar=roc", [all …]
|
D | format.txt | 23 // locale: locale including calendar type 27 …// or a calendar spec ERA=0,YEAR=1, etc.. applied to the calendar type specified by the loc… 34 "en_US@calendar=gregorian", 41 "zh_TW@calendar=roc", 49 "zh_TW@calendar=roc", 69 "en_US@calendar=gregorian", 76 "en_US@calendar=gregorian", 83 "en_US@calendar=gregorian", 91 "en_US@calendar=gregorian", 99 "en_US@calendar=gregorian", [all …]
|
/external/icu/icu4c/source/data/locales/ |
D | root.txt | 363 calendar{ 365 AmPmMarkers:alias{"/LOCALE/calendar/gregorian/AmPmMarkers"} 366 AmPmMarkersNarrow:alias{"/LOCALE/calendar/gregorian/AmPmMarkersNarrow"} 367 DateTimePatterns:alias{"/LOCALE/calendar/generic/DateTimePatterns"} 368 NoonMarker:alias{"/LOCALE/calendar/gregorian/NoonMarker"} 369 NoonMarkerNarrow:alias{"/LOCALE/calendar/gregorian/NoonMarkerNarrow"} 370 appendItems:alias{"/LOCALE/calendar/generic/appendItems"} 371 availableFormats:alias{"/LOCALE/calendar/generic/availableFormats"} 372 dayNames:alias{"/LOCALE/calendar/gregorian/dayNames"} 377 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/icu/android_icu4j/src/main/java/android/icu/util/ |
D | EasterHoliday.java | 142 calendar = orthodox; in EasterRule() 168 synchronized(calendar) { in isOn() 169 calendar.setTime(date); in isOn() 170 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); in isOn() 172 calendar.setTime(computeInYear(calendar.getTime(), calendar)); in isOn() local 174 return calendar.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn() 191 synchronized(calendar) { in doFirstBetween() 193 Date result = computeInYear(start, calendar); in doFirstBetween() 201 calendar.setTime(start); in doFirstBetween() 202 calendar.get(Calendar.YEAR); // JDK 1.1.2 bug workaround in doFirstBetween() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | EasterHoliday.java | 156 calendar = orthodox; in EasterRule() 182 synchronized(calendar) { in isOn() 183 calendar.setTime(date); in isOn() 184 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); in isOn() 186 calendar.setTime(computeInYear(calendar.getTime(), calendar)); in isOn() local 188 return calendar.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn() 205 synchronized(calendar) { in doFirstBetween() 207 Date result = computeInYear(start, calendar); in doFirstBetween() 215 calendar.setTime(start); in doFirstBetween() 216 calendar.get(Calendar.YEAR); // JDK 1.1.2 bug workaround in doFirstBetween() [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/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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | CalendarRegression.java | 7 package com.ibm.icu.dev.test.calendar; 154 Calendar calendar = new GregorianCalendar(pdt); in Test4040996() local 156 calendar.set(Calendar.MONTH,3); in Test4040996() 157 calendar.set(Calendar.DAY_OF_MONTH,18); in Test4040996() 158 calendar.set(Calendar.SECOND, 30); in Test4040996() 160 logln("MONTH: " + calendar.get(Calendar.MONTH)); in Test4040996() 162 calendar.get(Calendar.DAY_OF_MONTH)); in Test4040996() 163 logln("MINUTE: " + calendar.get(Calendar.MINUTE)); in Test4040996() 164 logln("SECOND: " + calendar.get(Calendar.SECOND)); in Test4040996() 166 calendar.add(Calendar.SECOND,6); in Test4040996() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | CalendarRegression.java | 8 package android.icu.dev.test.calendar; 158 Calendar calendar = new GregorianCalendar(pdt); in Test4040996() local 160 calendar.set(Calendar.MONTH,3); in Test4040996() 161 calendar.set(Calendar.DAY_OF_MONTH,18); in Test4040996() 162 calendar.set(Calendar.SECOND, 30); in Test4040996() 164 logln("MONTH: " + calendar.get(Calendar.MONTH)); in Test4040996() 166 calendar.get(Calendar.DAY_OF_MONTH)); in Test4040996() 167 logln("MINUTE: " + calendar.get(Calendar.MINUTE)); in Test4040996() 168 logln("SECOND: " + calendar.get(Calendar.SECOND)); in Test4040996() 170 calendar.add(Calendar.SECOND,6); in Test4040996() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DateFormat.java | 151 protected Calendar calendar; field in DateFormat 599 calendar.setTime(date); in format() 600 return format(calendar, toAppendTo, fieldPosition); in format() 732 TimeZone tzsav = calendar.getTimeZone(); in parse() 733 calendar.clear(); in parse() 734 parse(text, calendar, pos); in parse() 737 result = calendar.getTime(); in parse() 747 calendar.setTimeZone(tzsav); in parse() 1423 this.calendar = newCalendar; in setCalendar() 1432 return calendar; in getCalendar() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateFormat.java | 152 protected Calendar calendar; field in DateFormat 646 calendar.setTime(date); in format() 647 return format(calendar, toAppendTo, fieldPosition); in format() 783 TimeZone tzsav = calendar.getTimeZone(); in parse() 784 calendar.clear(); in parse() 785 parse(text, calendar, pos); in parse() 788 result = calendar.getTime(); in parse() 798 calendar.setTimeZone(tzsav); in parse() 1535 this.calendar = newCalendar; in setCalendar() 1545 return calendar; in getCalendar() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | calregts.cpp | 333 Calendar *calendar = new GregorianCalendar(pdt, status); in test4040996() local 338 calendar->set(UCAL_MONTH,3); in test4040996() 339 calendar->set(UCAL_DATE,18); in test4040996() 340 calendar->set(UCAL_SECOND, 30); in test4040996() 342 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996() 344 calendar->get(UCAL_DATE, status)); in test4040996() 345 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status)); in test4040996() 346 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status)); in test4040996() 348 calendar->add(UCAL_SECOND,6, status); in test4040996() 352 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996() [all …]
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/constructor/ |
D | SafeConstructor.java | 308 private Calendar calendar; field in SafeConstructor.ConstructYamlTimestamp 311 return calendar; in getCalendar() 322 calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC")); in construct() 323 calendar.clear(); in construct() 324 calendar.set(Calendar.YEAR, Integer.parseInt(year_s)); in construct() 326 calendar.set(Calendar.MONTH, Integer.parseInt(month_s) - 1); // x in construct() 327 calendar.set(Calendar.DAY_OF_MONTH, Integer.parseInt(day_s)); in construct() 328 return calendar.getTime(); in construct() 359 calendar = Calendar.getInstance(timeZone); in construct() 360 calendar.set(Calendar.YEAR, Integer.parseInt(year_s)); in construct() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | coptccal.cpp | 109 CopticCalendar calendar(Locale("@calendar=coptic"), status); in initializeSystemDefaultCentury() local 111 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 112 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 113 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 114 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
D | buddhcal.cpp | 149 BuddhistCalendar calendar(Locale("@calendar=buddhist"),status); in initializeSystemDefaultCentury() local 151 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 152 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 153 UDate newStart = calendar.getTime(status); in initializeSystemDefaultCentury() 154 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
D | ethpccal.cpp | 149 EthiopicCalendar calendar(Locale("@calendar=ethiopic"), status); in initializeSystemDefaultCentury() local 151 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 152 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 154 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 155 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
D | taiwncal.cpp | 154 TaiwanCalendar calendar(Locale("@calendar=roc"),status); in initializeSystemDefaultCentury() local 157 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 158 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 160 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 161 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
D | persncal.cpp | 263 PersianCalendar calendar(Locale("@calendar=persian"),status); in initializeSystemDefaultCentury() local 266 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 267 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 269 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 270 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
/external/apache-http/src/org/apache/http/impl/cookie/ |
D | DateUtils.java | 86 Calendar calendar = Calendar.getInstance(); 87 calendar.setTimeZone(GMT); 88 calendar.set(2000, Calendar.JANUARY, 1, 0, 0, 0); 89 calendar.set(Calendar.MILLISECOND, 0); in calendar.set() 90 DEFAULT_TWO_DIGIT_YEAR_START = calendar.getTime();
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | OpenSSLX509CRLEntry.java | 109 Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC")); in getRevocationDate() local 110 calendar.set(Calendar.MILLISECOND, 0); in getRevocationDate() 112 calendar); in getRevocationDate() local 113 return calendar.getTime(); in getRevocationDate()
|