/libcore/benchmarks/src/benchmarks/regression/ |
H A D | DateToStringBenchmark.java | 28 Calendar calendar; field in class:DateToStringBenchmark 34 calendar = new GregorianCalendar(); 35 calendar.setTime(date); 59 DateFormat.format("EEE MMM dd HH:mm:ss zzz yyyy", calendar);
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
H A D | Gregorian.java | 26 package sun.util.calendar; 31 * Gregorian calendar implementation.
|
H A D | CalendarUtils.java | 26 package sun.util.calendar; 35 * calendar system. 37 * @param gregorianYear a Gregorian calendar year 39 * calendar system. 49 * calendar system. The year number must be a normalized one 52 * @param normalizedJulianYear a normalized Julian calendar year 54 * calendar system.
|
H A D | Era.java | 26 package sun.util.calendar; 32 * The class <code>Era</code> represents a calendar era that defines a 35 * calendar system. An era starts at any point of time (Gregorian) that is 38 * <p><code>Era</code>s that are applicable to a particular calendar 48 * Japanese calendar Meiji 1868-01-01 midnight local time 52 * Julian calendar BeforeCommonEra -292275055-05-16T16:47:04.192Z 54 * Taiwanese calendar MinGuo 1911-01-01 midnight local time 55 * Thai Buddhist calendar BuddhistEra -543-01-01 midnight local time 73 * @param name the era name (e.g., "BeforeCommonEra" for the Julian calendar system)
|
H A D | AbstractCalendar.java | 27 package sun.util.calendar; 34 * implementing a concrete calendar system. 38 * For implementing a concrete calendar system, each calendar must 126 // BEGIN Android-changed: Android doesn't have sun.util.calendar.ZoneInfo. 134 // END Android-changed: Android doesn't have sun.util.calendar.ZoneInfo. 194 // Android-changed: Android doesn't have sun.util.calendar.ZoneInfo. 207 // Android-changed: Android doesn't have sun.util.calendar.ZoneInfo. 333 * Returns the fixed date calculated with the specified calendar 345 * Calculates calendar field [all...] |
H A D | CalendarSystem.java | 27 package sun.util.calendar; 40 * programming interface to deal with calendar date and time. 43 * example, there exists only one Gregorian calendar instance in the 53 * because, for example, a Chinese calendar date can't be understood 54 * by the Hebrew calendar system. 58 * Each calendar system has a unique name to be identified. The Java 59 * runtime in this release supports the following calendar systems. 78 // BEGIN Android-changed: avoid reflection for loading calendar classes. 79 // // Map of calendar names and calendar clas [all...] |
H A D | JulianCalendar.java | 26 package sun.util.calendar; 31 * Julian calendar implementation.
|
H A D | LocalGregorianCalendar.java | 26 package sun.util.calendar; 127 // Parse calendar.*.eras 128 String props = calendarProps.getProperty("calendar." + name + ".eras");
|
H A D | BaseCalendar.java | 26 package sun.util.calendar; 31 * The <code>BaseCalendar</code> provides basic calendar calculation 33 * calendar systems. 226 // the calendar fields. Let getTime() do it. 414 * Calculates calendar fields and store them in the specified
|
H A D | CalendarDate.java | 26 package sun.util.calendar; 34 * in time by calendar date and time fields that are multiple cycles 35 * in different time unites. The semantics of each calendar field is 36 * given by a concrete calendar system rather than this 37 * <code>CalendarDate</code> class that holds calendar field values 46 * of calendar dates must be handled by the calendar system by which 49 * <p>Some calendar fields can be modified through method calls. Any 50 * modification of a calendar field brings the state of a 52 * normalization must be performed to make all the calendar field [all...] |
H A D | ImmutableGregorianDate.java | 26 package sun.util.calendar;
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
H A D | Duration.java | 504 * object is based on some other calendar systems. 523 * @param calendar 524 * A calendar object whose value will be modified. 526 * if the calendar parameter is null. 528 public abstract void addTo(Calendar calendar); argument
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | DateUtilsBridge.java | 61 Calendar calendar = new GregorianCalendar(icuTimeZone, icuLocale); 62 calendar.setTimeInMillis(timeInMillis); 63 return calendar; 66 public static String toSkeleton(Calendar calendar, int flags) { argument 67 return toSkeleton(calendar, calendar, flags);
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | CalendarTest.java | 57 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); 58 calendar.set(2011, 9, 15, 1, 0); // 01:00 GMT-3 59 double hoursSinceEpoch = hoursSinceEpoch(calendar); 60 calendar.add(Calendar.DATE, 1); 61 assertEquals(23.0, hoursSinceEpoch(calendar) - hoursSinceEpoch); 62 assertCalendarEquals(calendar, 2011, 9, 16, 1, 0); // 01:00 GMT-2; +23 hours 73 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); 74 calendar.set(2011, 9, 15, 0, 0); // 00:00 GMT-3 75 double hoursSinceEpoch = hoursSinceEpoch(calendar); 76 calendar 213 assertCalendarEquals(Calendar calendar, int year, int month, int day, int hour, int minute) argument [all...] |
/libcore/ojluni/src/main/java/java/text/ |
H A D | DateFormat.java | 68 * months, days of the week, or even the calendar format: lunar vs. solar. 160 protected Calendar calendar; field in class:DateFormat 377 * <p>This parsing operation uses the {@link #calendar} to produce 378 * a {@code Date}. As a result, the {@code calendar}'s date-time 630 * Set the calendar to be used by this date format. Initially, the default 631 * calendar for the specified or default locale is used. 641 this.calendar = newCalendar; 645 * Gets the calendar associated with this date/time formatter. 647 * @return the calendar associated with this date/time formatter. 651 return calendar; [all...] |
/libcore/luni/src/main/java/libcore/util/ |
H A D | ZoneInfo.java | 379 // Julian to Gregorian in 1582. What calendar system are the 706 private final GregorianCalendar calendar; field in class:ZoneInfo.WallTime 720 this.calendar = new GregorianCalendar(0, 0, 0, 0, 0, 0); 721 calendar.setTimeZone(TimeZone.getTimeZone("UTC")); 757 calendar.setTimeInMillis(wallTimeSeconds * 1000L); 795 final long longWallTimeSeconds = calendar.getTimeInMillis() / 1000; 898 calendar.setTimeInMillis(adjustedWallTimeSeconds * 1000L); 1161 calendar.set(Calendar.YEAR, year); 1162 calendar.set(Calendar.MONTH, month); 1163 calendar [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Calendar.java | 60 * #fields calendar fields} such as <code>YEAR</code>, <code>MONTH</code>, 62 * manipulating the calendar fields, such as getting the date of the next 68 * implementing a concrete calendar system outside the package. Those 76 * calendar fields have been initialized with the current date and time: 83 * <p>A <code>Calendar</code> object can produce all the calendar field values 85 * calendar style (for example, Japanese-Gregorian, Japanese-Traditional). 87 * certain calendar fields, as well as their meaning. For example, 88 * the first month of the calendar system has value <code>MONTH == 95 * <p>The calendar field values can be set by calling the <code>set</code> 98 * the Epoch) or values of the calendar field 3408 getMillisOf(Calendar calendar) argument [all...] |