Examples of CalendarSystem


Examples of sun.util.calendar.CalendarSystem

        long maxEnd = gc.getYearOffsetInMillis();
        if (current > maxEnd) {
      value--;
        }
    } else {
        CalendarSystem mincal = gc.getTimeInMillis() >= gregorianCutover ?
      gcal : getJulianCalendarSystem();
        CalendarDate d = mincal.getCalendarDate(Long.MIN_VALUE, getZone());
        long maxEnd = (cal.getDayOfYear(d) - 1) * 24 + d.getHours();
        maxEnd *= 60;
        maxEnd += d.getMinutes();
        maxEnd *= 60;
        maxEnd += d.getSeconds();
View Full Code Here

Examples of sun.util.calendar.CalendarSystem

  // If the default TimeZone has changed, then recalculate the
  // fields with the new TimeZone.
  TimeZone tz = TimeZone.getDefaultRef();
  if (tz != cdate.getZone()) {
      cdate.setZone(tz);
      CalendarSystem cal = getCalendarSystem(cdate);
      cal.getCalendarDate(fastTime, cdate);
  }
  return cdate;
    }
View Full Code Here

Examples of sun.util.calendar.CalendarSystem

                    long maxEnd = gc.getYearOffsetInMillis();
                    if (current > maxEnd) {
                        value--;
                    }
                } else {
                    CalendarSystem mincal = gc.getTimeInMillis() >= gregorianCutover ?
                        gcal : getJulianCalendarSystem();
                    CalendarDate d = mincal.getCalendarDate(Long.MIN_VALUE, getZone());
                    long maxEnd = (cal.getDayOfYear(d) - 1) * 24 + d.getHours();
                    maxEnd *= 60;
                    maxEnd += d.getMinutes();
                    maxEnd *= 60;
                    maxEnd += d.getSeconds();
View Full Code Here

Examples of sun.util.calendar.CalendarSystem

        // If the default TimeZone has changed, then recalculate the
        // fields with the new TimeZone.
        TimeZone tz = TimeZone.getDefaultRef();
        if (tz != cdate.getZone()) {
            cdate.setZone(tz);
            CalendarSystem cal = getCalendarSystem(cdate);
            cal.getCalendarDate(fastTime, cdate);
        }
        return cdate;
    }
View Full Code Here

Examples of sun.util.calendar.CalendarSystem

                    long maxEnd = gc.getYearOffsetInMillis();
                    if (current > maxEnd) {
                        value--;
                    }
                } else {
                    CalendarSystem mincal = gc.getTimeInMillis() >= gregorianCutover ?
                        gcal : getJulianCalendarSystem();
                    CalendarDate d = mincal.getCalendarDate(Long.MIN_VALUE, getZone());
                    long maxEnd = (cal.getDayOfYear(d) - 1) * 24 + d.getHours();
                    maxEnd *= 60;
                    maxEnd += d.getMinutes();
                    maxEnd *= 60;
                    maxEnd += d.getSeconds();
View Full Code Here

Examples of sun.util.calendar.CalendarSystem

        // If the default TimeZone has changed, then recalculate the
        // fields with the new TimeZone.
        TimeZone tz = TimeZone.getDefaultRef();
        if (tz != cdate.getZone()) {
            cdate.setZone(tz);
            CalendarSystem cal = getCalendarSystem(cdate);
            cal.getCalendarDate(fastTime, cdate);
        }
        return cdate;
    }
View Full Code Here

Examples of sun.util.calendar.CalendarSystem

        /*
         * Generalized time can theoretically allow any precision,
         * but we're not supporting that.
         */
        CalendarSystem gcal = CalendarSystem.getGregorianCalendar();
        CalendarDate date = gcal.newCalendarDate(null); // no time zone
        date.setDate(year, month, day);
        date.setTimeOfDay(hour, minute, second, millis);
        long time = gcal.getTime(date);

        /*
         * Finally, "Z" or "+hhmm" or "-hhmm" ... offsets change hhmm
         */
        if (! (len == 1 || len == 5))
View Full Code Here

Examples of sun.util.calendar.CalendarSystem

                    long maxEnd = gc.getYearOffsetInMillis();
                    if (current > maxEnd) {
                        value--;
                    }
                } else {
                    CalendarSystem mincal = gc.getTimeInMillis() >= gregorianCutover ?
                        gcal : getJulianCalendarSystem();
                    CalendarDate d = mincal.getCalendarDate(Long.MIN_VALUE, getZone());
                    long maxEnd = (cal.getDayOfYear(d) - 1) * 24 + d.getHours();
                    maxEnd *= 60;
                    maxEnd += d.getMinutes();
                    maxEnd *= 60;
                    maxEnd += d.getSeconds();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.