Searched refs:zone (Results 1 - 16 of 16) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/calendar/
H A DGregorian.java44 protected Date(TimeZone zone) { argument
45 super(zone);
76 public Date getCalendarDate(long millis, TimeZone zone) { argument
77 return getCalendarDate(millis, newCalendarDate(zone));
84 public Date newCalendarDate(TimeZone zone) { argument
85 return new Date(zone);
H A DJulianCalendar.java53 protected Date(TimeZone zone) { argument
54 super(zone);
133 public Date getCalendarDate(long millis, TimeZone zone) { argument
134 return getCalendarDate(millis, newCalendarDate(zone));
141 public Date newCalendarDate(TimeZone zone) { argument
142 return new Date(zone);
H A DEra.java108 public long getSince(TimeZone zone) { argument
109 if (zone == null || !localTime) {
112 int offset = zone.getOffset(since);
H A DLocalGregorianCalendar.java57 protected Date(TimeZone zone) { argument
58 super(zone);
206 public Date getCalendarDate(long millis, TimeZone zone) { argument
207 return getCalendarDate(millis, newCalendarDate(zone));
242 public Date newCalendarDate(TimeZone zone) { argument
243 return new Date(zone);
H A DCalendarSystem.java169 * the time zone offsets (i.e., the GMT offset and amount of
181 public abstract CalendarDate getCalendarDate(long millis, TimeZone zone); argument
186 * values. The {@link TimeZone#getDefault() default time zone} is
194 public abstract CalendarDate newCalendarDate(TimeZone zone); argument
H A DCalendarDate.java93 protected CalendarDate(TimeZone zone) { argument
94 zoneinfo = zone;
423 int zone = zoneinfo != null ? zoneinfo.hashCode() : 0;
424 return (int) hash * (int)(hash >> 32) ^ era ^ normalized ^ zone;
H A DAbstractCalendar.java111 public CalendarDate getCalendarDate(long millis, TimeZone zone) { argument
112 CalendarDate date = newCalendarDate(zone);
122 // adjust to local time if `date' has time zone.
130 // We need to calculate the given millis and time zone
180 // adjust time zone and daylight saving
H A DBaseCalendar.java148 protected Date(TimeZone zone) { argument
149 super(zone);
226 // If the date has a time zone, then we need to recalculate
/libcore/ojluni/src/main/java/java/util/
H A DCalendar.java248 * <code>f</code> is changed or other constraints, such as time zone
548 * zone of this <code>Calendar</code> if the
559 * the time zone of this <code>Calendar</code> if the
813 * uses the time zone data to translate between locale and GMT time.
816 private TimeZone zone; field in class:Calendar
819 * <code>True</code> if zone references to a shared TimeZone object.
932 * Constructs a Calendar with the default time zone
943 * Constructs a calendar with the specified time zone and locale.
945 * @param zone the time zone t
948 Calendar(TimeZone zone, Locale aLocale) argument
987 getInstance(TimeZone zone) argument
1016 getInstance(TimeZone zone, Locale aLocale) argument
1022 createCalendar(TimeZone zone, Locale aLocale) argument
[all...]
H A DTimeZone.java57 * <code>TimeZone</code> represents a time zone offset, and also figures out daylight
62 * which creates a <code>TimeZone</code> based on the time zone where the program
68 * along with a time zone ID. For instance, the time zone ID for the
69 * U.S. Pacific Time zone is "America/Los_Angeles". So, you can get a
75 * all the supported time zone IDs. You can then choose a
77 * If the time zone you want is not represented by one of the
78 * supported IDs, then a custom time zone ID can be specified to
79 * produce a TimeZone. The syntax of a custom time zone ID is:
103 * transition schedule can be specified with a custom time zone I
[all...]
H A DGregorianCalendar.java261 * // create a Pacific Standard Time time zone
268 * // create a GregorianCalendar with the Pacific Daylight time zone
566 * Temporary int[2] to get time zone offsets. zoneOffsets[0] gets
584 * in the default time zone with the default locale.
593 * in the given time zone with the default locale.
595 * @param zone the given time zone.
597 public GregorianCalendar(TimeZone zone) { argument
598 this(zone, Locale.getDefault(Locale.Category.FORMAT));
603 * in the default time zone wit
619 GregorianCalendar(TimeZone zone, Locale aLocale) argument
1974 setTimeZone(TimeZone zone) argument
2811 adjustForZoneAndDaylightSavingsTime( int tzMask, long utcTimeInMillis, TimeZone zone) argument
2914 adjustDstOffsetForInvalidWallClock( long standardTimeInZone, TimeZone zone, int dstOffset) argument
[all...]
/libcore/ojluni/src/main/java/java/text/
H A DDateFormatSymbols.java61 * months, the names of the days of the week, and the time zone data.
201 * <li><code>zoneStrings[i][0]</code> - time zone ID</li>
202 * <li><code>zoneStrings[i][1]</code> - long name of zone in standard
204 * <li><code>zoneStrings[i][2]</code> - short name of zone in
206 * <li><code>zoneStrings[i][3]</code> - long name of zone in daylight
208 * <li><code>zoneStrings[i][4]</code> - short name of zone in daylight
211 * The zone ID is <em>not</em> localized; it's one of the valid IDs of
567 * Gets time zone strings. Use of this method is discouraged; use
578 * <li><code>zoneStrings[i][0]</code> - time zone ID</li>
579 * <li><code>zoneStrings[i][1]</code> - long name of zone i
[all...]
H A DDateFormat.java112 * <p>You can also set the time zone on the format if you wish.
634 * Sets the time zone for the calendar of this {@code DateFormat} object.
637 * getCalendar().setTimeZone(zone)
646 * @param zone the given new time zone.
648 public void setTimeZone(TimeZone zone) argument
650 calendar.setTimeZone(zone);
654 * Gets the time zone.
660 * @return the time zone associated with the calendar of DateFormat.
1004 * Constant identifying the time zone fiel
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DSimpleTimeZoneTest.java403 SimpleTimeZone zone = new SimpleTimeZone(tz.getRawOffset(), "EST",
407 assertTrue("Returned incorrect daylight value1", zone.inDaylightTime(gc
410 assertTrue("Returned incorrect daylight value2", !(zone
412 gc = new GregorianCalendar(zone);
414 assertTrue("Returned incorrect daylight value3", !(zone
417 assertTrue("Returned incorrect daylight value4", zone
420 assertTrue("Returned incorrect daylight value5", !(zone
423 assertTrue("Returned incorrect daylight value6", zone
426 assertTrue("Returned incorrect daylight value7", !zone
428 assertTrue("Returned incorrect daylight value8", zone
[all...]
H A DTimeZoneTest.java168 TimeZone zone = new SimpleTimeZone(45, "TEST");
169 TimeZone.setDefault(zone);
170 assertEquals("timezone not set", zone, TimeZone.getDefault());
190 /* Time zone data was changed in ICU49.2. Many common short names were removed. */
229 // Obviously, for all time zones, the time zone whose raw offset we started with
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DZipEntryTest.java342 TimeZone zone = TimeZone.getDefault();
363 TimeZone.setDefault(zone);

Completed in 157 milliseconds