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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gregoriancalendar.java

?? java源代碼 請看看啊 提點寶貴的意見
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
     * gregorianCutover. This is a pure date value with no time of day or     * timezone component.     */    private transient long normalizedGregorianCutover = gregorianCutover;    /**     * The year of the gregorianCutover, with 0 representing     * 1 BC, -1 representing 2 BC, etc.     */    private transient int gregorianCutoverYear = 1582;    // Proclaim serialization compatibility with JDK 1.1    static final long serialVersionUID = -8125100834729963327L;///////////////// Constructors///////////////    /**     * Constructs a default GregorianCalendar using the current time     * in the default time zone with the default locale.     */    public GregorianCalendar() {        this(TimeZone.getDefault(), Locale.getDefault());    }    /**     * Constructs a GregorianCalendar based on the current time     * in the given time zone with the default locale.     * @param zone the given time zone.     */    public GregorianCalendar(TimeZone zone) {        this(zone, Locale.getDefault());    }    /**     * Constructs a GregorianCalendar based on the current time     * in the default time zone with the given locale.     * @param aLocale the given locale.     */    public GregorianCalendar(Locale aLocale) {        this(TimeZone.getDefault(), aLocale);    }    /**     * Constructs a GregorianCalendar based on the current time     * in the given time zone with the given locale.     * @param zone the given time zone.     * @param aLocale the given locale.     */    public GregorianCalendar(TimeZone zone, Locale aLocale) {        super(zone, aLocale);        setTimeInMillis(System.currentTimeMillis());    }    /**     * Constructs a GregorianCalendar with the given date set     * in the default time zone with the default locale.     * @param year the value used to set the YEAR time field in the calendar.     * @param month the value used to set the MONTH time field in the calendar.     * Month value is 0-based. e.g., 0 for January.     * @param date the value used to set the DATE time field in the calendar.     */    public GregorianCalendar(int year, int month, int date) {        super(TimeZone.getDefault(), Locale.getDefault());        this.set(YEAR, year);        this.set(MONTH, month);        this.set(DATE, date);    }    /**     * Constructs a GregorianCalendar with the given date     * and time set for the default time zone with the default locale.     * @param year the value used to set the YEAR time field in the calendar.     * @param month the value used to set the MONTH time field in the calendar.     * Month value is 0-based. e.g., 0 for January.     * @param date the value used to set the DATE time field in the calendar.     * @param hour the value used to set the HOUR_OF_DAY time field     * in the calendar.     * @param minute the value used to set the MINUTE time field     * in the calendar.     */    public GregorianCalendar(int year, int month, int date, int hour,                             int minute) {        super(TimeZone.getDefault(), Locale.getDefault());        this.set(YEAR, year);        this.set(MONTH, month);        this.set(DATE, date);        this.set(HOUR_OF_DAY, hour);        this.set(MINUTE, minute);    }    /**     * Constructs a GregorianCalendar with the given date     * and time set for the default time zone with the default locale.     * @param year the value used to set the YEAR time field in the calendar.     * @param month the value used to set the MONTH time field in the calendar.     * Month value is 0-based. e.g., 0 for January.     * @param date the value used to set the DATE time field in the calendar.     * @param hour the value used to set the HOUR_OF_DAY time field     * in the calendar.     * @param minute the value used to set the MINUTE time field     * in the calendar.     * @param second the value used to set the SECOND time field     * in the calendar.     */    public GregorianCalendar(int year, int month, int date, int hour,                             int minute, int second) {        super(TimeZone.getDefault(), Locale.getDefault());        this.set(YEAR, year);        this.set(MONTH, month);        this.set(DATE, date);        this.set(HOUR_OF_DAY, hour);        this.set(MINUTE, minute);        this.set(SECOND, second);    }/////////////////// Public methods/////////////////    /**     * Sets the GregorianCalendar change date. This is the point when the switch     * from Julian dates to Gregorian dates occurred. Default is October 15,     * 1582. Previous to this, dates will be in the Julian calendar.     * <p>     * To obtain a pure Julian calendar, set the change date to     * <code>Date(Long.MAX_VALUE)</code>.  To obtain a pure Gregorian calendar,     * set the change date to <code>Date(Long.MIN_VALUE)</code>.     *     * @param date the given Gregorian cutover date.     */    public void setGregorianChange(Date date) {        gregorianCutover = date.getTime();        // Precompute two internal variables which we use to do the actual        // cutover computations.  These are the normalized cutover, which is the        // midnight at or before the cutover, and the cutover year.  The        // normalized cutover is in pure date milliseconds; it contains no time        // of day or timezone component, and it used to compare against other        // pure date values.        long cutoverDay = floorDivide(gregorianCutover, ONE_DAY);        normalizedGregorianCutover = cutoverDay * ONE_DAY;        // Handle the rare case of numeric overflow.  If the user specifies a        // change of Date(Long.MIN_VALUE), in order to get a pure Gregorian        // calendar, then the epoch day is -106751991168, which when multiplied        // by ONE_DAY gives 9223372036794351616 -- the negative value is too        // large for 64 bits, and overflows into a positive value.  We correct        // this by using the next day, which for all intents is semantically        // equivalent.        if (cutoverDay < 0 && normalizedGregorianCutover > 0) {            normalizedGregorianCutover = (cutoverDay + 1) * ONE_DAY;        }        // Normalize the year so BC values are represented as 0 and negative        // values.        GregorianCalendar cal = new GregorianCalendar(getTimeZone());        cal.setTime(date);        gregorianCutoverYear = cal.get(YEAR);        if (cal.get(ERA) == BC) {	    gregorianCutoverYear = 1 - gregorianCutoverYear;	}    }    /**     * Gets the Gregorian Calendar change date.  This is the point when the     * switch from Julian dates to Gregorian dates occurred. Default is     * October 15, 1582. Previous to this, dates will be in the Julian     * calendar.     * @return the Gregorian cutover date for this calendar.     */    public final Date getGregorianChange() {        return new Date(gregorianCutover);    }    /**     * Determines if the given year is a leap year. Returns true if the     * given year is a leap year.     * @param year the given year.     * @return true if the given year is a leap year; false otherwise.     */    public boolean isLeapYear(int year) {        return year >= gregorianCutoverYear ?            ((year%4 == 0) && ((year%100 != 0) || (year%400 == 0))) : // Gregorian            (year%4 == 0); // Julian    }    /**     * Compares this GregorianCalendar to an object reference.     * @param obj the object reference with which to compare     * @return true if this object is equal to <code>obj</code>; false otherwise     */    public boolean equals(Object obj) {        return super.equals(obj) &&            obj instanceof GregorianCalendar &&            gregorianCutover == ((GregorianCalendar)obj).gregorianCutover;    }        /**     * Override hashCode.     * Generates the hash code for the GregorianCalendar object     */    public int hashCode() {        return super.hashCode() ^ (int)gregorianCutover;    }    /**     * Adds the specified (signed) amount of time to the given time field,     * based on the calendar's rules.     * <p><em>Add rule 1</em>. The value of <code>field</code>     * after the call minus the value of <code>field</code> before the     * call is <code>amount</code>, modulo any overflow that has occurred in     * <code>field</code>. Overflow occurs when a field value exceeds its     * range and, as a result, the next larger field is incremented or     * decremented and the field value is adjusted back into its range.</p>     *     * <p><em>Add rule 2</em>. If a smaller field is expected to be     * invariant, but it is impossible for it to be equal to its     * prior value because of changes in its minimum or maximum after     * <code>field</code> is changed, then its value is adjusted to be as close     * as possible to its expected value. A smaller field represents a     * smaller unit of time. <code>HOUR</code> is a smaller field than     * <code>DAY_OF_MONTH</code>. No adjustment is made to smaller fields     * that are not expected to be invariant. The calendar system     * determines what fields are expected to be invariant.</p>     * @param field the time field.     * @param amount the amount of date or time to be added to the field.     * @exception IllegalArgumentException if an unknown field is given.     */    public void add(int field, int amount) {        if (amount == 0) {	    return;   // Do nothing!	}        complete();        if (field == YEAR) {            int year = this.internalGet(YEAR);            if (this.internalGetEra() == AD) {                year += amount;                if (year > 0) {                    this.set(YEAR, year);                } else { // year <= 0                    this.set(YEAR, 1 - year);                    // if year == 0, you get 1 BC                    this.set(ERA, BC);                }            }            else { // era == BC                year -= amount;                if (year > 0) {                    this.set(YEAR, year);                } else { // year <= 0                    this.set(YEAR, 1 - year);                    // if year == 0, you get 1 AD                    this.set(ERA, AD);                }            }            pinDayOfMonth();        } else if (field == MONTH) {            int month = this.internalGet(MONTH) + amount;	    int year = this.internalGet(YEAR);	    int y_amount;	    if (month >= 0) {                y_amount = month/12;	    } else {                y_amount = (month+1)/12 - 1;	    }	    if (y_amount != 0) {                if (this.internalGetEra() == AD) {                    year += y_amount;                    if (year > 0) {                        this.set(YEAR, year);                    } else { // year <= 0                        this.set(YEAR, 1 - year);                        // if year == 0, you get 1 BC                        this.set(ERA, BC);                    }                }                else { // era == BC                    year -= y_amount;                    if (year > 0) {                        this.set(YEAR, year);                    } else { // year <= 0                        this.set(YEAR, 1 - year);                        // if year == 0, you get 1 AD                        this.set(ERA, AD);                    }                }            }            if (month >= 0) {                set(MONTH, (int) (month % 12));            } else {		// month < 0                month %= 12;                if (month < 0) {		    month += 12;		}                set(MONTH, JANUARY + month);            }            pinDayOfMonth();        } else if (field == ERA) {            int era = internalGet(ERA) + amount;            if (era < 0) {		era = 0;	    }            if (era > 1) {		era = 1;	    }            set(ERA, era);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
自拍偷在线精品自拍偷无码专区| 欧美精品久久久久久久多人混战| 国产三级一区二区| 国产精品1区2区3区| 国产三级精品在线| 高清不卡一区二区在线| 中文字幕色av一区二区三区| 91美女片黄在线观看91美女| 亚洲国产欧美在线人成| 欧美日韩精品一区二区三区| 日韩av不卡一区二区| 精品久久久久一区| 成人app网站| 亚洲精品日韩一| 欧美日韩一区在线观看| 日韩在线一区二区| 国产亚洲一区二区三区| 99riav一区二区三区| 日韩专区在线视频| 国产色产综合产在线视频 | 激情丁香综合五月| 国产色产综合产在线视频| 色呦呦国产精品| 精品一区二区三区蜜桃| 日韩一区中文字幕| 91精品国产综合久久久久久漫画 | 国产乱码精品一品二品| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 日本道色综合久久| 另类综合日韩欧美亚洲| 亚洲欧美一区二区三区孕妇| 91精品久久久久久久99蜜桃| 成人网在线播放| 五月天激情综合| 中文字幕成人网| 欧美一区二区三区的| 99re8在线精品视频免费播放| 天天色 色综合| 国产精品视频观看| 日韩午夜在线影院| 色婷婷香蕉在线一区二区| 激情综合一区二区三区| 亚洲国产视频直播| 国产精品美女久久久久久久| 在线不卡免费欧美| 91蝌蚪porny| 国产sm精品调教视频网站| 天天色天天爱天天射综合| 日韩伦理免费电影| 久久精品一区二区三区不卡牛牛| 欧美日韩成人高清| 色综合久久久久综合体桃花网| 精品一区二区三区免费观看| 日韩精品国产欧美| 亚洲综合色区另类av| 国产精品欧美久久久久一区二区| 精品1区2区在线观看| 欧美日韩免费不卡视频一区二区三区 | 麻豆精品一区二区av白丝在线| 亚洲精品久久久久久国产精华液| 欧美激情自拍偷拍| 久久久久久久久久久久久久久99 | 精品一区二区免费在线观看| 亚洲在线免费播放| 亚洲欧美一区二区不卡| 国产精品麻豆欧美日韩ww| 久久综合成人精品亚洲另类欧美 | 日韩免费观看高清完整版| 欧美日韩免费不卡视频一区二区三区| 91亚洲男人天堂| 欧美电影在线免费观看| 亚洲精品在线免费观看视频| 看电影不卡的网站| 七七婷婷婷婷精品国产| 天堂成人免费av电影一区| 天天综合日日夜夜精品| 亚洲精品国产成人久久av盗摄| 国产精品成人午夜| 一区二区三区 在线观看视频| 亚洲视频在线观看三级| 亚洲人快播电影网| 亚洲精选视频在线| 午夜精品一区二区三区免费视频 | 一本大道久久a久久精二百| 99久久精品免费看国产免费软件| 91色视频在线| 欧美在线|欧美| 91麻豆精品91久久久久同性| 欧美电影在哪看比较好| 欧美刺激午夜性久久久久久久| 精品毛片乱码1区2区3区| 欧美变态凌虐bdsm| 久久精品人人做| 亚洲人成亚洲人成在线观看图片 | 亚洲小说春色综合另类电影| 亚洲成人av中文| 免费人成在线不卡| 国产成人精品网址| 北条麻妃一区二区三区| 91福利社在线观看| 日韩一区二区三区免费看 | 亚洲人被黑人高潮完整版| 国产精品乱码一区二区三区软件 | xf在线a精品一区二区视频网站| 欧美电视剧在线观看完整版| 久久久99免费| 一区二区高清视频在线观看| 美女视频黄频大全不卡视频在线播放| 国产一区二区不卡在线| 色婷婷一区二区三区四区| 日韩午夜精品电影| 国产精品福利电影一区二区三区四区| 亚洲欧美激情插| 久久99精品久久久久婷婷| 91丨九色丨尤物| 精品国产网站在线观看| 亚洲欧美精品午睡沙发| 麻豆精品一区二区av白丝在线| 成人深夜视频在线观看| 精品视频资源站| 国产三级久久久| 日韩黄色片在线观看| av网站一区二区三区| 日韩一区二区中文字幕| 亚洲美女免费视频| 国产美女一区二区三区| 欧美日韩一区精品| 国产精品全国免费观看高清| 美女性感视频久久| 91国模大尺度私拍在线视频| 久久久久久夜精品精品免费| 一区二区三区国产| 成人精品视频网站| 欧美哺乳videos| 日韩精品三区四区| 在线观看亚洲精品视频| 亚洲国产精品v| 黑人巨大精品欧美一区| 欧美少妇一区二区| 亚洲视频在线一区二区| 国产精品一二三四五| 欧美一区二区在线不卡| 亚洲aaa精品| 欧美曰成人黄网| 亚洲同性同志一二三专区| 国产成都精品91一区二区三| 日韩欧美在线影院| 午夜国产精品影院在线观看| 色悠悠久久综合| 亚洲三级小视频| 91日韩在线专区| 国产精品美女久久久久久| 国产成人福利片| 久久久久久久久久久久电影| 韩国精品主播一区二区在线观看 | 国产一区不卡视频| 精品国产乱码91久久久久久网站| 日韩av一区二区三区四区| 在线观看日韩精品| 一区二区三区中文免费| 91一区一区三区| 一区二区三区视频在线看| 成人h精品动漫一区二区三区| 国产精品女人毛片| 成人福利视频在线| 国产精品福利一区二区三区| av不卡一区二区三区| 亚洲日本韩国一区| 91成人网在线| 午夜精品久久久久久久| 欧美高清视频www夜色资源网| 偷偷要91色婷婷| 日韩一区二区三免费高清| 日本视频一区二区三区| 日韩视频免费观看高清完整版 | 激情五月婷婷综合网| 精品国产网站在线观看| 国产精品一区不卡| 国产精品第13页| 在线观看视频欧美| 日本欧美韩国一区三区| 久久综合色8888| 成人理论电影网| 亚洲精选一二三| 日韩一二三四区| 国产老女人精品毛片久久| 国产农村妇女毛片精品久久麻豆| 成人午夜看片网址| 亚洲一区二区在线观看视频| 精品视频免费看| 精品一区二区三区在线观看 | 欧美日韩国产片| 久久99精品国产麻豆婷婷洗澡| 久久亚洲影视婷婷| 91麻豆免费观看| 男人操女人的视频在线观看欧美| 久久久久久97三级| 色婷婷亚洲精品| 极品尤物av久久免费看| 亚洲欧美日韩国产综合|