亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? gregoriancalendar.java

?? java源代碼 請看看啊 提點寶貴的意見
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
        complete(); // Force update of DST_OFFSET field        return internalGet(DST_OFFSET) != 0;    }    /**     * Return the year that corresponds to the <code>WEEK_OF_YEAR</code> field.     * This may be one year before or after the calendar year stored     * in the <code>YEAR</code> field.  For example, January 1, 1999 is considered     * Friday of week 53 of 1998 (if minimal days in first week is     * 2 or less, and the first day of the week is Sunday).  Given     * these same settings, the ISO year of January 1, 1999 is     * 1998.     * <p>     * Warning: This method will complete all fields.     * @return the year corresponding to the <code>WEEK_OF_YEAR</code> field, which     * may be one year before or after the <code>YEAR</code> field.     * @see #WEEK_OF_YEAR     */    int getISOYear() {        complete();        int woy = internalGet(WEEK_OF_YEAR);        // Get the ISO year, which matches the week of year.  This        // may be one year before or after the calendar year.        int isoYear = internalGet(YEAR);        if (internalGet(MONTH) == Calendar.JANUARY) {            if (woy >= 52) {                --isoYear;            }        } else {            if (woy == 1) {                ++isoYear;            }        }        return isoYear;    }/////////////////////////////// Time => Fields computation/////////////////////////////    /**     * Converts UTC as milliseconds to time field values.     * The time is <em>not</em>     * recomputed first; to recompute the time, then the fields, call the     * <code>complete</code> method.     * @see Calendar#complete     */    protected void computeFields() {	computeFieldsImpl();	// Careful here: We are manually setting the time stamps[]	// flags to INTERNALLY_SET, so we must be sure that the	// computeFieldsImpl method actually does set all the fields.	for (int i = 0; i < FIELD_COUNT; ++i) {	    stamp[i] = INTERNALLY_SET;	    isSet[i] = true;	}    }    /**     * This computeFieldsImpl implements the conversion from UTC (a     * millisecond offset from 1970-01-01T00:00:00.000Z) to calendar     * field values.     */    private void computeFieldsImpl() {	TimeZone tz = getTimeZone();	int[] offsets = new int[2];	int offset;	if (tz instanceof ZoneInfo) {	    offset = ((ZoneInfo)tz).getOffsets(time, offsets);	} else {	    offset = tz.getOffsets(time, offsets);	}	long localMillis = time + offset; // here localMillis is wall        /* Check for very extreme values -- millis near Long.MIN_VALUE or         * Long.MAX_VALUE.  For these values, adding the zone offset can push         * the millis past MAX_VALUE to MIN_VALUE, or vice versa.  This produces         * the undesirable effect that the time can wrap around at the ends,         * yielding, for example, a Date(Long.MAX_VALUE) with a big BC year         * (should be AD).  Handle this by pinning such values to Long.MIN_VALUE         * or Long.MAX_VALUE. - liu 8/11/98 bug 4149677 */        if (time > 0 && localMillis < 0 && offset > 0) {            localMillis = Long.MAX_VALUE;        } else if (time < 0 && localMillis > 0 && offset < 0) {            localMillis = Long.MIN_VALUE;        }        // Time to fields takes the wall millis (Standard or DST).        timeToFields(localMillis, false);	long days = floorDivide(localMillis, ONE_DAY);        int millisInDay = (int) (localMillis - (days * ONE_DAY));        if (millisInDay < 0) {	    millisInDay += ONE_DAY;	}        // Fill in all time-related fields based on millisInDay.  Call internalSet()        // so as not to perturb flags.        internalSet(MILLISECOND, millisInDay % 1000);        millisInDay /= 1000;        internalSet(SECOND, millisInDay % 60);        millisInDay /= 60;        internalSet(MINUTE, millisInDay % 60);        millisInDay /= 60;        internalSet(HOUR_OF_DAY, millisInDay);        internalSet(AM_PM, millisInDay / 12); // Assume AM == 0        internalSet(HOUR, millisInDay % 12);        internalSet(ZONE_OFFSET, offsets[0]);        internalSet(DST_OFFSET, offsets[1]);    }    /**     * Convert the time as milliseconds to the date fields.  Millis must be     * given as local wall millis to get the correct local day.  For example,     * if it is 11:30 pm Standard, and DST is in effect, the correct DST millis     * must be passed in to get the right date.     * <p>     * Fields that are completed by this method: ERA, YEAR, MONTH, DATE,     * DAY_OF_WEEK, DAY_OF_YEAR, WEEK_OF_YEAR, WEEK_OF_MONTH,     * DAY_OF_WEEK_IN_MONTH.     * @param theTime the wall-clock time in milliseconds (either Standard or DST),     * whichever is in effect     * @param quick if true, only compute the ERA, YEAR, MONTH, DATE,     * DAY_OF_WEEK, and DAY_OF_YEAR.     */    private final void timeToFields(long theTime, boolean quick) {        int rawYear, year, month, date, dayOfWeek, dayOfYear, weekCount, era;        boolean isLeap;        // Compute the year, month, and day of month from the given millis        if (theTime >= normalizedGregorianCutover) {            // The Gregorian epoch day is zero for Monday January 1, year 1.            long gregorianEpochDay = millisToJulianDay(theTime) - JAN_1_1_JULIAN_DAY;            // Here we convert from the day number to the multiple radix            // representation.  We use 400-year, 100-year, and 4-year cycles.            // For example, the 4-year cycle has 4 years + 1 leap day; giving            // 1461 == 365*4 + 1 days.	    int n400, n100, n4, n1;	    if (gregorianEpochDay > 0) {		n400 = (int)(gregorianEpochDay / 146097);		dayOfYear = (int)(gregorianEpochDay % 146097);		n100 = dayOfYear / 36524;		dayOfYear %= 36524;		n4 = dayOfYear / 1461;		dayOfYear %= 1461;		n1 = dayOfYear / 365;		dayOfYear %= 365;	// zero-based day of year	    } else {		int[] rem = new int[1];		n400 = floorDivide(gregorianEpochDay, 146097, rem); // 400-year cycle length		n100 = floorDivide(rem[0], 36524, rem); // 100-year cycle length		n4 = floorDivide(rem[0], 1461, rem); // 4-year cycle length		n1 = floorDivide(rem[0], 365, rem);		dayOfYear = rem[0];	// zero-based day of year	    }            rawYear = 400*n400 + 100*n100 + 4*n4 + n1;            if (n100 == 4 || n1 == 4) {		dayOfYear = 365; // Dec 31 at end of 4- or 400-yr cycle            } else {		++rawYear;	    }                        isLeap = ((rawYear&0x3) == 0) && // equiv. to (rawYear%4 == 0)                (rawYear%100 != 0 || rawYear%400 == 0);                        // Gregorian day zero is a Monday            dayOfWeek = (int)((gregorianEpochDay+1) % 7);        } else {            // The Julian epoch day (not the same as Julian Day)            // is zero on Saturday December 30, 0 (Gregorian).            long julianEpochDay = millisToJulianDay(theTime) - (JAN_1_1_JULIAN_DAY - 2);            rawYear = (int) floorDivide(4*julianEpochDay + 1464, 1461);                        // Compute the Julian calendar day number for January 1, rawYear            long january1 = 365*(rawYear-1) + floorDivide(rawYear-1, 4);            dayOfYear = (int)(julianEpochDay - january1); // 0-based                        // Julian leap years occurred historically every 4 years starting            // with 8 AD.  Before 8 AD the spacing is irregular; every 3 years            // from 45 BC to 9 BC, and then none until 8 AD.  However, we don't            // implement this historical detail; instead, we implement the            // computationally cleaner proleptic calendar, which assumes            // consistent 4-year cycles throughout time.            isLeap = ((rawYear&0x3) == 0); // equiv. to (rawYear%4 == 0)                        // Julian calendar day zero is a Saturday            dayOfWeek = (int)((julianEpochDay-1) % 7);        }                // Common Julian/Gregorian calculation        int correction = 0;        int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1        if (dayOfYear >= march1) {	    correction = isLeap ? 1 : 2;	}        month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month        date = dayOfYear -            (isLeap ? LEAP_NUM_DAYS[month] : NUM_DAYS[month]) + 1; // one-based DOM                // Normalize day of week        dayOfWeek += (dayOfWeek < 0) ? (SUNDAY+7) : SUNDAY;        era = AD;        year = rawYear;        if (year < 1) {            era = BC;            year = 1 - year;        }        internalSet(ERA, era);        internalSet(YEAR, year);        internalSet(MONTH, month + JANUARY); // 0-based        internalSet(DATE, date);        internalSet(DAY_OF_WEEK, dayOfWeek);        internalSet(DAY_OF_YEAR, ++dayOfYear); // Convert from 0-based to 1-based        if (quick) {	    return;	}	// WEEK_OF_YEAR start        // Compute the week of the year.  Valid week numbers run from 1 to 52        // or 53, depending on the year, the first day of the week, and the        // minimal days in the first week.  Days at the start of the year may        // fall into the last week of the previous year; days at the end of        // the year may fall into the first week of the next year.        int relDow = (dayOfWeek + 7 - getFirstDayOfWeek()) % 7; // 0..6        int relDowJan1 = (dayOfWeek - dayOfYear + 701 - getFirstDayOfWeek()) % 7; // 0..6        int woy = (dayOfYear - 1 + relDowJan1) / 7; // 0..53        if ((7 - relDowJan1) >= getMinimalDaysInFirstWeek()) {            ++woy;	}	// XXX: The calculation of dayOfYear does not take into account 	// Gregorian cut over date. The next if statement depends on that 	// assumption.	if (dayOfYear > 359) { // Fast check which eliminates most cases	    // Check to see if we are in the last week; if so, we need	    // to handle the case in which we are the first week of the	    // next year.            int lastDoy = yearLength();            int lastRelDow = (relDow + lastDoy - dayOfYear) % 7;            if (lastRelDow < 0) {		lastRelDow += 7;	    }            if (((6 - lastRelDow) >= getMinimalDaysInFirstWeek()) &&                ((dayOfYear + 7 - relDow) > lastDoy)) {		woy = 1;	    }        } else if (woy == 0) {            // We are the last week of the previous year.            int prevDoy = dayOfYear + yearLength(rawYear - 1);            woy = weekNumber(prevDoy, dayOfWeek);        }        internalSet(WEEK_OF_YEAR, woy);	// WEEK_OF_YEAR end        internalSet(WEEK_OF_MONTH, weekNumber(date, dayOfWeek));        internalSet(DAY_OF_WEEK_IN_MONTH, (date-1) / 7 + 1);    }/////////////////////////////// Fields => Time computation/////////////////////////////    /**     * Overrides Calendar     * Converts time field values to UTC as milliseconds.     * @exception IllegalArgumentException if any fields are invalid.     */    protected void computeTime() {        if (!isLenient() && !validateFields()) {            throw new IllegalArgumentException();	}        // This function takes advantage of the fact that unset fields in        // the time field list have a value of zero.        // The year defaults to the epoch start.        int year = (stamp[YEAR] != UNSET) ? internalGet(YEAR) : EPOCH_YEAR;	// The YEAR field must always be used regardless of its SET	// state because YEAR is a mandatory field to determine the date	// and the default value (EPOCH_YEAR) may change through the	// normalization process.	int fieldMask = 1 << YEAR;        int era = AD;        if (stamp[ERA] != UNSET) {            era = internalGet(ERA);	    fieldMask |= 1 << ERA;            if (era == BC) {                year = 1 - year;            } else if (era != AD) {		// Even in lenient mode we disallow ERA values other than AD & BC                throw new IllegalArgumentException("Invalid era");	    }        }	int[] fieldMaskParam = { fieldMask };        // First, use the year to determine whether to use the Gregorian or the        // Julian calendar. If the year is not the year of the cutover, this        // computation will be correct. But if the year is the cutover year,        // this may be incorrect. In that case, assume the Gregorian calendar,        // make the computation, and then recompute if the resultant mi

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜精品久久久久久久| 大白屁股一区二区视频| 一区在线中文字幕| 国产肉丝袜一区二区| 日韩欧美国产三级电影视频| 欧美日韩精品久久久| 欧美高清一级片在线| 欧美久久久久久久久| 7777精品久久久大香线蕉| 在线不卡一区二区| 欧美高清视频一二三区 | 久久久国产精品午夜一区ai换脸| 欧洲精品中文字幕| 在线播放一区二区三区| 欧美一区二区精品| 欧美成人aa大片| 久久精品亚洲一区二区三区浴池| 久久久精品2019中文字幕之3| 26uuu国产日韩综合| 精品99一区二区三区| 欧美激情在线观看视频免费| 中文字幕一区二区三区蜜月| 亚洲精品免费电影| 日日噜噜夜夜狠狠视频欧美人 | 久久精品视频在线免费观看| 欧美经典一区二区| 亚洲乱码日产精品bd| 午夜精品一区二区三区免费视频| 男人的天堂亚洲一区| 国产乱子伦视频一区二区三区| 风间由美中文字幕在线看视频国产欧美| 粉嫩av一区二区三区粉嫩| 一本色道综合亚洲| 欧美大度的电影原声| 国产精品入口麻豆原神| 丝袜美腿亚洲综合| 丰满亚洲少妇av| 欧美日韩高清影院| 国产亚洲欧美一区在线观看| 欧美一级久久久| 1024成人网| 极品少妇xxxx精品少妇| 91国产福利在线| 久久综合资源网| 亚洲高清在线精品| 成人黄色综合网站| 欧美一区二区三区系列电影| 亚洲视频免费在线| 国产一区在线视频| 欧美日韩国产首页在线观看| 国产偷国产偷精品高清尤物| 天堂午夜影视日韩欧美一区二区| 成人精品一区二区三区中文字幕| 777欧美精品| 一区二区免费视频| 成人一道本在线| 精品日韩在线观看| 日本欧美加勒比视频| 日本韩国一区二区三区视频| 中文子幕无线码一区tr| 久久精品国产亚洲a| 欧美三级电影一区| 亚洲黄网站在线观看| 成人黄色一级视频| 国产精品久久午夜| 国产老妇另类xxxxx| 91精品国产综合久久香蕉的特点| 亚洲精品欧美二区三区中文字幕| 岛国一区二区三区| 国产欧美视频一区二区三区| 国内外精品视频| 欧美成人官网二区| 美国精品在线观看| 不卡的av网站| 日韩毛片一二三区| 91麻豆免费观看| 亚洲男人的天堂av| 色老汉av一区二区三区| 亚洲免费看黄网站| 色www精品视频在线观看| 亚洲女同一区二区| 欧美性做爰猛烈叫床潮| 亚洲成人1区2区| 欧美一区永久视频免费观看| 免费高清成人在线| 久久久久久久久久久99999| 国产一区二区调教| 欧美激情一区二区三区四区| av亚洲精华国产精华精华| 中文字幕字幕中文在线中不卡视频| 91浏览器打开| 日本中文字幕一区| 久久久91精品国产一区二区精品| 成人小视频免费在线观看| 日韩理论片网站| 欧美自拍偷拍午夜视频| 免费不卡在线视频| 国产欧美综合色| 色久优优欧美色久优优| 日本不卡不码高清免费观看| 精品国产欧美一区二区| 成人激情免费电影网址| 亚洲成人精品影院| 久久午夜国产精品| 色诱视频网站一区| 另类中文字幕网| 国产精品美女www爽爽爽| 色94色欧美sute亚洲13| 裸体一区二区三区| 日韩美女视频一区二区| 欧美一区二区黄色| 不卡一卡二卡三乱码免费网站| 亚洲午夜视频在线观看| 久久五月婷婷丁香社区| 欧美日韩国产精选| 成人午夜免费视频| 毛片一区二区三区| 依依成人综合视频| 久久久久久久久久看片| 欧美美女一区二区三区| 懂色av一区二区夜夜嗨| 日韩专区中文字幕一区二区| 国产精品麻豆视频| 欧美成人三级电影在线| 91豆麻精品91久久久久久| 国产一区二区在线观看免费 | 狠狠色综合播放一区二区| 亚洲人成电影网站色mp4| 精品sm在线观看| 欧美日韩免费一区二区三区| 国产精品一二三在| 美女视频黄免费的久久 | 亚洲女人小视频在线观看| 精品国产乱码久久久久久蜜臀| 99久久777色| 国产a久久麻豆| 六月婷婷色综合| 日本免费在线视频不卡一不卡二| 亚洲欧美日韩电影| 日本一区二区三区免费乱视频| 欧美一级片在线看| 欧美精品日韩一区| 欧美图区在线视频| 99麻豆久久久国产精品免费| 精彩视频一区二区| 免费观看91视频大全| 亚洲va欧美va天堂v国产综合| 中文字幕一区二区三区色视频| 精品国产区一区| 久久综合色一综合色88| 在线视频一区二区三| 色婷婷一区二区| 91福利国产精品| 欧美亚一区二区| 欧美日韩成人综合| 欧美日本不卡视频| 777午夜精品免费视频| 欧美人与性动xxxx| 91精品啪在线观看国产60岁| 欧美三级资源在线| 欧美理论在线播放| 4438成人网| 日韩美女天天操| 久久久国产精品麻豆| 中文文精品字幕一区二区| 中文字幕在线一区| 亚洲国产一区二区三区| 丝袜诱惑制服诱惑色一区在线观看 | 色88888久久久久久影院按摩| 91在线观看地址| 欧美日韩免费不卡视频一区二区三区| 在线影视一区二区三区| 欧美日韩一区二区电影| 日韩一区二区精品| 中文字幕免费观看一区| 一二三区精品福利视频| 视频一区二区三区中文字幕| 激情小说欧美图片| 9人人澡人人爽人人精品| 欧美偷拍一区二区| 精品福利一区二区三区| 国产精品成人免费在线| 亚洲6080在线| 国产mv日韩mv欧美| 欧美男女性生活在线直播观看| 精品捆绑美女sm三区| 国产精品久久99| 免费人成在线不卡| 99re热这里只有精品免费视频| 欧美日韩国产另类一区| 中文字幕+乱码+中文字幕一区| 亚洲成av人综合在线观看| 国产精品一区二区在线观看不卡| 色综合久久六月婷婷中文字幕| 日韩一级二级三级| 亚洲伦在线观看| 国产精品1024久久| 在线成人av网站| 玉米视频成人免费看| 国产一区二区伦理|