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

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

?? gregoriancalendar.java

?? java源代碼 請(qǐng)看看啊 提點(diǎn)寶貴的意見
?? JAVA
?? 第 1 頁 / 共 5 頁
字號(hào):
/* * @(#)GregorianCalendar.java	1.73 03/04/27 * * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. *//* * (C) Copyright Taligent, Inc. 1996-1998 - All Rights Reserved * (C) Copyright IBM Corp. 1996-1998 - All Rights Reserved * *   The original version of this source code and documentation is copyrighted * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These * materials are provided under terms of a License Agreement between Taligent * and Sun. This technology is protected by multiple US and International * patents. This notice and attribution to Taligent may not be removed. *   Taligent is a registered trademark of Taligent, Inc. * */package java.util;import java.io.IOException;import java.io.ObjectInputStream;import sun.util.calendar.ZoneInfo;/** * <code>GregorianCalendar</code> is a concrete subclass of * {@link Calendar} * and provides the standard calendar used by most of the world. * * <p> * The standard (Gregorian) calendar has 2 eras, BC and AD. * * <p> * This implementation handles a single discontinuity, which corresponds by * default to the date the Gregorian calendar was instituted (October 15, 1582 * in some countries, later in others).  The cutover date may be changed by the * caller by calling <code>setGregorianChange()</code>. * * <p> * Historically, in those countries which adopted the Gregorian calendar first, * October 4, 1582 was thus followed by October 15, 1582. This calendar models * this correctly.  Before the Gregorian cutover, <code>GregorianCalendar</code> * implements the Julian calendar.  The only difference between the Gregorian * and the Julian calendar is the leap year rule. The Julian calendar specifies * leap years every four years, whereas the Gregorian calendar omits century * years which are not divisible by 400. * * <p> * <code>GregorianCalendar</code> implements <em>proleptic</em> Gregorian and * Julian calendars. That is, dates are computed by extrapolating the current * rules indefinitely far backward and forward in time. As a result, * <code>GregorianCalendar</code> may be used for all years to generate * meaningful and consistent results. However, dates obtained using * <code>GregorianCalendar</code> are historically accurate only from March 1, 4 * AD onward, when modern Julian calendar rules were adopted.  Before this date, * leap year rules were applied irregularly, and before 45 BC the Julian * calendar did not even exist. * * <p> * Prior to the institution of the Gregorian calendar, New Year's Day was * March 25. To avoid confusion, this calendar always uses January 1. A manual * adjustment may be made if desired for dates that are prior to the Gregorian * changeover and which fall between January 1 and March 24. * * <p>Values calculated for the <code>WEEK_OF_YEAR</code> field range from 1 to * 53.  Week 1 for a year is the earliest seven day period starting on * <code>getFirstDayOfWeek()</code> that contains at least * <code>getMinimalDaysInFirstWeek()</code> days from that year.  It thus * depends on the values of <code>getMinimalDaysInFirstWeek()</code>, * <code>getFirstDayOfWeek()</code>, and the day of the week of January 1. * Weeks between week 1 of one year and week 1 of the following year are * numbered sequentially from 2 to 52 or 53 (as needed). * <p>For example, January 1, 1998 was a Thursday.  If * <code>getFirstDayOfWeek()</code> is <code>MONDAY</code> and * <code>getMinimalDaysInFirstWeek()</code> is 4 (these are the values * reflecting ISO 8601 and many national standards), then week 1 of 1998 starts * on December 29, 1997, and ends on January 4, 1998.  If, however, * <code>getFirstDayOfWeek()</code> is <code>SUNDAY</code>, then week 1 of 1998 * starts on January 4, 1998, and ends on January 10, 1998; the first three days * of 1998 then are part of week 53 of 1997. * * <p>Values calculated for the <code>WEEK_OF_MONTH</code> field range from 0 * to 6.  Week 1 of a month (the days with <code>WEEK_OF_MONTH = * 1</code>) is the earliest set of at least * <code>getMinimalDaysInFirstWeek()</code> contiguous days in that month, * ending on the day before <code>getFirstDayOfWeek()</code>.  Unlike * week 1 of a year, week 1 of a month may be shorter than 7 days, need * not start on <code>getFirstDayOfWeek()</code>, and will not include days of * the previous month.  Days of a month before week 1 have a * <code>WEEK_OF_MONTH</code> of 0. * * <p>For example, if <code>getFirstDayOfWeek()</code> is <code>SUNDAY</code> * and <code>getMinimalDaysInFirstWeek()</code> is 4, then the first week of * January 1998 is Sunday, January 4 through Saturday, January 10.  These days * have a <code>WEEK_OF_MONTH</code> of 1.  Thursday, January 1 through * Saturday, January 3 have a <code>WEEK_OF_MONTH</code> of 0.  If * <code>getMinimalDaysInFirstWeek()</code> is changed to 3, then January 1 * through January 3 have a <code>WEEK_OF_MONTH</code> of 1. * * <p> * <strong>Example:</strong> * <blockquote> * <pre> * // get the supported ids for GMT-08:00 (Pacific Standard Time) * String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000); * // if no ids were returned, something is wrong. get out. * if (ids.length == 0) *     System.exit(0); * *  // begin output * System.out.println("Current Time"); * * // create a Pacific Standard Time time zone * SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]); * * // set up rules for daylight savings time * pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 2 * 60 * 60 * 1000); * pdt.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2 * 60 * 60 * 1000); * * // create a GregorianCalendar with the Pacific Daylight time zone * // and the current date and time * Calendar calendar = new GregorianCalendar(pdt); * Date trialTime = new Date(); * calendar.setTime(trialTime); * * // print out a bunch of interesting things * System.out.println("ERA: " + calendar.get(Calendar.ERA)); * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); * System.out.println("MONTH: " + calendar.get(Calendar.MONTH)); * System.out.println("WEEK_OF_YEAR: " + calendar.get(Calendar.WEEK_OF_YEAR)); * System.out.println("WEEK_OF_MONTH: " + calendar.get(Calendar.WEEK_OF_MONTH)); * System.out.println("DATE: " + calendar.get(Calendar.DATE)); * System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH)); * System.out.println("DAY_OF_YEAR: " + calendar.get(Calendar.DAY_OF_YEAR)); * System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK)); * System.out.println("DAY_OF_WEEK_IN_MONTH: " *                    + calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH)); * System.out.println("AM_PM: " + calendar.get(Calendar.AM_PM)); * System.out.println("HOUR: " + calendar.get(Calendar.HOUR)); * System.out.println("HOUR_OF_DAY: " + calendar.get(Calendar.HOUR_OF_DAY)); * System.out.println("MINUTE: " + calendar.get(Calendar.MINUTE)); * System.out.println("SECOND: " + calendar.get(Calendar.SECOND)); * System.out.println("MILLISECOND: " + calendar.get(Calendar.MILLISECOND)); * System.out.println("ZONE_OFFSET: " *                    + (calendar.get(Calendar.ZONE_OFFSET)/(60*60*1000))); * System.out.println("DST_OFFSET: " *                    + (calendar.get(Calendar.DST_OFFSET)/(60*60*1000))); * System.out.println("Current Time, with hour reset to 3"); * calendar.clear(Calendar.HOUR_OF_DAY); // so doesn't override * calendar.set(Calendar.HOUR, 3); * System.out.println("ERA: " + calendar.get(Calendar.ERA)); * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); * System.out.println("MONTH: " + calendar.get(Calendar.MONTH)); * System.out.println("WEEK_OF_YEAR: " + calendar.get(Calendar.WEEK_OF_YEAR)); * System.out.println("WEEK_OF_MONTH: " + calendar.get(Calendar.WEEK_OF_MONTH)); * System.out.println("DATE: " + calendar.get(Calendar.DATE)); * System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH)); * System.out.println("DAY_OF_YEAR: " + calendar.get(Calendar.DAY_OF_YEAR)); * System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK)); * System.out.println("DAY_OF_WEEK_IN_MONTH: " *                    + calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH)); * System.out.println("AM_PM: " + calendar.get(Calendar.AM_PM)); * System.out.println("HOUR: " + calendar.get(Calendar.HOUR)); * System.out.println("HOUR_OF_DAY: " + calendar.get(Calendar.HOUR_OF_DAY)); * System.out.println("MINUTE: " + calendar.get(Calendar.MINUTE)); * System.out.println("SECOND: " + calendar.get(Calendar.SECOND)); * System.out.println("MILLISECOND: " + calendar.get(Calendar.MILLISECOND)); * System.out.println("ZONE_OFFSET: " *        + (calendar.get(Calendar.ZONE_OFFSET)/(60*60*1000))); // in hours * System.out.println("DST_OFFSET: " *        + (calendar.get(Calendar.DST_OFFSET)/(60*60*1000))); // in hours * </pre> * </blockquote> * * @see          Calendar * @see          TimeZone * @version      1.73 * @author David Goldsmith, Mark Davis, Chen-Lieh Huang, Alan Liu * @since JDK1.1 */public class GregorianCalendar extends Calendar {    /*     * Implementation Notes     *     * The Julian day number, as used here, is a modified number which has its     * onset at midnight, rather than noon.     *     * The epoch is the number of days or milliseconds from some defined     * starting point. The epoch for java.util.Date is used here; that is,     * milliseconds from January 1, 1970 (Gregorian), midnight UTC.  Other     * epochs which are used are January 1, year 1 (Gregorian), which is day 1     * of the Gregorian calendar, and December 30, year 0 (Gregorian), which is     * day 1 of the Julian calendar.     *     * We implement the proleptic Julian and Gregorian calendars.  This means we     * implement the modern definition of the calendar even though the     * historical usage differs.  For example, if the Gregorian change is set     * to new Date(Long.MIN_VALUE), we have a pure Gregorian calendar which     * labels dates preceding the invention of the Gregorian calendar in 1582 as     * if the calendar existed then.     *     * Likewise, with the Julian calendar, we assume a consistent 4-year leap     * rule, even though the historical pattern of leap years is irregular,     * being every 3 years from 45 BC through 9 BC, then every 4 years from 8 AD     * onwards, with no leap years in-between.  Thus date computations and     * functions such as isLeapYear() are not intended to be historically     * accurate.     *     * Given that milliseconds are a long, day numbers such as Julian day     * numbers, Gregorian or Julian calendar days, or epoch days, are also     * longs. Years can fit into an int.     *///////////////////// Class Variables//////////////////    /**     * Value of the <code>ERA</code> field indicating     * the period before the common era (before Christ), also known as BCE.     * The sequence of years at the transition from <code>BC</code> to <code>AD</code> is     * ..., 2 BC, 1 BC, 1 AD, 2 AD,...     * @see Calendar#ERA     */    public static final int BC = 0;    /**     * Value of the <code>ERA</code> field indicating     * the common era (Anno Domini), also known as CE.     * The sequence of years at the transition from <code>BC</code> to <code>AD</code> is     * ..., 2 BC, 1 BC, 1 AD, 2 AD,...     * @see Calendar#ERA     */    public static final int AD = 1;    private static final int JAN_1_1_JULIAN_DAY = 1721426; // January 1, year 1 (Gregorian)    private static final int EPOCH_JULIAN_DAY   = 2440588; // January 1, 1970 (Gregorian)    private static final int EPOCH_YEAR = 1970;    private static final int NUM_DAYS[]        = {0,31,59,90,120,151,181,212,243,273,304,334}; // 0-based, for day-in-year    private static final int LEAP_NUM_DAYS[]        = {0,31,60,91,121,152,182,213,244,274,305,335}; // 0-based, for day-in-year    private static final int MONTH_LENGTH[]        = {31,28,31,30,31,30,31,31,30,31,30,31}; // 0-based    private static final int LEAP_MONTH_LENGTH[]        = {31,29,31,30,31,30,31,31,30,31,30,31}; // 0-based    // Useful millisecond constants.  Although ONE_DAY and ONE_WEEK can fit    // into ints, they must be longs in order to prevent arithmetic overflow    // when performing (bug 4173516).    private static final int  ONE_SECOND = 1000;    private static final int  ONE_MINUTE = 60*ONE_SECOND;    private static final int  ONE_HOUR   = 60*ONE_MINUTE;    private static final long ONE_DAY    = 24*ONE_HOUR;    private static final long ONE_WEEK   = 7*ONE_DAY;    /*     * <pre>     *                            Greatest       Least      * Field name        Minimum   Minimum     Maximum     Maximum     * ----------        -------   -------     -------     -------     * ERA                     0         0           1           1     * YEAR                    1         1   292269054   292278994     * MONTH                   0         0          11          11     * WEEK_OF_YEAR            1         1          52          53     * WEEK_OF_MONTH           0         0           4           6     * DAY_OF_MONTH            1         1          28          31     * DAY_OF_YEAR             1         1         365         366     * DAY_OF_WEEK             1         1           7           7     * DAY_OF_WEEK_IN_MONTH   -1        -1           4           6     * AM_PM                   0         0           1           1     * HOUR                    0         0          11          11     * HOUR_OF_DAY             0         0          23          23     * MINUTE                  0         0          59          59     * SECOND                  0         0          59          59     * MILLISECOND             0         0         999         999     * ZONE_OFFSET           -12*      -12*         12*         12*     * DST_OFFSET              0         0           1*          1*     * </pre>     * (*) In units of one-hour     */    private static final int MIN_VALUES[] = {        0,1,0,1,0,1,1,1,-1,0,0,0,0,0,0,-12*ONE_HOUR,0    };    private static final int LEAST_MAX_VALUES[] = {        1,292269054,11,52,4,28,365,7,4,1,11,23,59,59,999,12*ONE_HOUR,1*ONE_HOUR    };    private static final int MAX_VALUES[] = {        1,292278994,11,53,6,31,366,7,6,1,11,23,59,59,999,12*ONE_HOUR,1*ONE_HOUR    };/////////////////////// Instance Variables/////////////////////    /**     * The point at which the Gregorian calendar rules are used, measured in     * milliseconds from the standard epoch.  Default is October 15, 1582     * (Gregorian) 00:00:00 UTC or -12219292800000L.  For this value, October 4,     * 1582 (Julian) is followed by October 15, 1582 (Gregorian).  This     * corresponds to Julian day number 2299161.     * @serial     */    private long gregorianCutover = -12219292800000L;    /**     * Midnight, local time (using this Calendar's TimeZone) at or before the

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成av人片在线观看无码| 日韩一区二区三区三四区视频在线观看| 成人性生交大片免费看中文| 色婷婷av一区二区三区大白胸| 欧美精品一二三| 精品久久久影院| 欧美性生活久久| 日韩欧美一区在线| 亚洲少妇中出一区| 国产原创一区二区| 精品少妇一区二区三区| 亚洲精品久久久蜜桃| 国产精品热久久久久夜色精品三区| 一区二区三区四区中文字幕| 国产电影精品久久禁18| 6080国产精品一区二区| 东方aⅴ免费观看久久av| 91偷拍与自偷拍精品| 国产福利91精品一区| 久久嫩草精品久久久精品| 337p日本欧洲亚洲大胆色噜噜| 亚洲色图在线播放| 日韩有码一区二区三区| 欧美一级艳片视频免费观看| 欧美亚洲另类激情小说| 亚洲人成7777| 日韩亚洲欧美在线| 99re6这里只有精品视频在线观看| 欧美激情一区二区三区全黄| 色婷婷av久久久久久久| 亚洲亚洲精品在线观看| 欧美成人bangbros| 久久久www成人免费毛片麻豆 | 亚洲美女屁股眼交3| 亚洲在线成人精品| 欧美自拍丝袜亚洲| 久久久美女艺术照精彩视频福利播放| 欧美日韩国产精选| 久久久久久久精| 中文字幕在线观看一区| 亚洲成人免费av| 免费高清视频精品| 美女mm1313爽爽久久久蜜臀| 国产精品99久久久久久似苏梦涵 | 国产一区二区视频在线| 极品少妇xxxx精品少妇偷拍| 国产高清一区日本| 久久精品72免费观看| 国产午夜精品一区二区 | 盗摄精品av一区二区三区| 在线一区二区三区| 国产.精品.日韩.另类.中文.在线.播放| 国产v综合v亚洲欧| 色悠久久久久综合欧美99| 亚洲精品ww久久久久久p站| 精品国产伦一区二区三区免费| 欧美大片日本大片免费观看| 一本到一区二区三区| 色综合视频一区二区三区高清| 日本韩国一区二区| 水野朝阳av一区二区三区| 亚洲精品视频在线| 国产欧美一区二区精品秋霞影院| 国产在线播精品第三| 亚洲色图在线播放| 日本成人在线不卡视频| 欧美性生活大片视频| 2020国产精品自拍| 不卡一区在线观看| 99re热视频精品| 日韩影院在线观看| 亚洲一区二区在线播放相泽 | 国产成人一区在线| 亚洲免费观看高清完整版在线观看 | 亚洲成人久久影院| 欧美蜜桃一区二区三区| 国内精品久久久久影院色| 亚洲综合在线视频| 日日夜夜一区二区| 亚洲第一精品在线| www.亚洲色图| 在线观看91av| 国产精品理论片在线观看| 国产精品久久免费看| 国产精品久久久久国产精品日日| 视频一区视频二区中文| 裸体健美xxxx欧美裸体表演| 日本aⅴ亚洲精品中文乱码| 亚洲欧美福利一区二区| 日韩一区二区麻豆国产| 午夜视频一区二区三区| 国产麻豆午夜三级精品| 久久这里都是精品| 欧美日韩一区国产| 日本不卡一二三| 高清不卡一二三区| 91精品国产综合久久香蕉的特点| 91久久精品一区二区二区| 欧美日韩一级二级| 国产亚洲成aⅴ人片在线观看| 国产精品少妇自拍| 美女视频一区在线观看| 不卡av电影在线播放| 欧美色老头old∨ideo| 99精品国产热久久91蜜凸| 欧美日本免费一区二区三区| 亚洲综合区在线| 蜜桃视频在线观看一区二区| 不卡大黄网站免费看| 欧美午夜电影在线播放| 中文字幕巨乱亚洲| 男人操女人的视频在线观看欧美| 国产毛片精品国产一区二区三区| 欧美性xxxxx极品少妇| 久久伊99综合婷婷久久伊| 亚洲一二三区视频在线观看| www.欧美日韩| 国产三级欧美三级| 美国十次综合导航| 精品国产一区久久| 亚洲成a人在线观看| 91在线国内视频| 亚洲国产精品成人综合| 日韩国产欧美一区二区三区| av激情综合网| |精品福利一区二区三区| 国产成人在线视频播放| 国产午夜精品一区二区三区嫩草 | 久久男人中文字幕资源站| 日韩三级免费观看| 97se亚洲国产综合自在线不卡 | 亚洲国产精品一区二区www | 国产乱子伦视频一区二区三区| 麻豆国产一区二区| 制服丝袜在线91| 亚洲综合丝袜美腿| 色婷婷综合久久久久中文一区二区| 国产精品网站在线观看| 成人一区在线看| 国产精品日日摸夜夜摸av| va亚洲va日韩不卡在线观看| 国产精品伦一区| 99热这里都是精品| 亚洲欧美在线视频观看| 色哟哟亚洲精品| 亚洲最色的网站| 国产一区二区女| 亚洲综合色噜噜狠狠| 国产精品福利电影一区二区三区四区| 欧美日韩一区二区三区在线| 国产高清亚洲一区| 免费欧美高清视频| 亚洲国产日韩精品| 久久久国产精华| 91精品国产91久久久久久最新毛片| 国产精品一区二区三区乱码| 日韩高清不卡在线| 伊人色综合久久天天人手人婷| 91精品国产黑色紧身裤美女| 国产精品2024| 亚洲电影你懂得| 香蕉成人伊视频在线观看| 久久蜜桃av一区二区天堂 | 亚洲一区二区三区小说| 久久色在线观看| 欧美成人一级视频| 精品国产伦一区二区三区观看方式 | 国产丝袜美腿一区二区三区| 欧美电影免费提供在线观看| 中文字幕在线观看一区| 亚洲国产一区二区在线播放| 欧美mv日韩mv亚洲| 91成人在线免费观看| 99re视频这里只有精品| 波多野结衣亚洲| 9色porny自拍视频一区二区| 欧美一级高清大全免费观看| 首页国产欧美日韩丝袜| 在线观看一区日韩| 欧美人牲a欧美精品| 国产成人亚洲精品青草天美| 亚洲免费三区一区二区| 日韩免费看的电影| 色婷婷国产精品综合在线观看| 日本美女视频一区二区| 国产精品的网站| 日韩精品一区二区三区在线播放| 成a人片亚洲日本久久| 日本不卡一区二区三区高清视频| 中文字幕一区二区三区在线观看 | 亚洲国产高清不卡| 国产精品久久777777| 日本va欧美va欧美va精品| 国产成人在线电影| 久久综合色天天久久综合图片| 国产丝袜在线精品| 日韩电影网1区2区| 色视频一区二区| 欧美大片在线观看一区二区| 国产精品污污网站在线观看|