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

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

?? date.java

?? kaffe Java 解釋器語言,源碼,Java的子集系統,開放源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* java.util.Date   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.util;/** * This class represents a specific time in milliseconds since the epoch. * The epoch is 1970, January 1 00:00:00.0000 UTC.   * * Date is intended to reflect universal time coordinate (UTC), but doesn't * handle the leap seconds. * * Prior to jdk 1.1 this class was the sole Time class and had also  * calendar functionality.  But this can't be localized, so a new Calendar * class was created, that you should use instead.  The functions which * get or return a year, month, day etc. are all deprecated and shouldn't be * used.  Use Calendar instead. *  * @see Calendar * @see GregorianCalendar * @see java.text.DateFormat * @author Jochen Hoenicke * @author Per Bothner <bothner@cygnus.com> */public class Date implements Cloneable, Comparable, java.io.Serializable{  /**   * This is the serialization UID for this class   */  private static final long serialVersionUID = 7523967970034938905L;  /**   * The time in milliseconds since the epoch.   */  private transient long time;  /**   * Creates a new Date Object representing the current time.   */  public Date()  {    time = System.currentTimeMillis();  }  /**   * Creates a new Date Object representing the given time.   * @param time the time in milliseconds since the epoch.   */  public Date(long time)  {    this.time = time;  }  /**   * Creates a new Date Object representing the given time.   * @deprecated use <code>new GregorianCalendar(year+1900, month,   * day)</code> instead.     */  public Date(int year, int month, int day)  {    time = new GregorianCalendar(year + 1900, month, day).getTimeInMillis();  }  /**   * Creates a new Date Object representing the given time.   * @deprecated use <code>new GregorianCalendar(year+1900, month,   * day, hour, min)</code> instead.     */  public Date(int year, int month, int day, int hour, int min)  {    time =      new GregorianCalendar(year + 1900, month, day, hour,			    min).getTimeInMillis();  }  /**   * Creates a new Date Object representing the given time.   * @deprecated use <code>new GregorianCalendar(year+1900, month,   * day)</code> instead.     */  public Date(int year, int month, int day, int hour, int min, int sec)  {    time =      new GregorianCalendar(year + 1900, month, day, hour, min,			    sec).getTimeInMillis();  }  /**   * Creates a new Date from the given string representation.  This   * does the same as <code>new Date(Date.parse(s))</code>   * @see #parse   * @deprecated use <code>java.text.DateFormat.parse(s)</code> instead.     */  public Date(String s)  {    time = parse(s);  }  public Object clone()  {    try      {	return super.clone();      }    catch (CloneNotSupportedException ex)      {	return null;      }  }  /**   * @deprecated Use Calendar with a UTC TimeZone instead.   * @return the time in millis since the epoch.   */  public static long UTC(int year, int month, int date,			 int hrs, int min, int sec)  {    GregorianCalendar cal =      new GregorianCalendar(year + 1900, month, date, hrs, min, sec);    cal.set(Calendar.ZONE_OFFSET, 0);    cal.set(Calendar.DST_OFFSET, 0);    return cal.getTimeInMillis();  }  /**   * Gets the time represented by this Object   * @return the time in milliseconds since the epoch.   */  public long getTime()  {    return time;  }  /**   * @deprecated use   * Calendar.get(Calendar.ZONE_OFFSET)+Calendar.get(Calendar.DST_OFFSET)   * instead.   * @return The time zone offset in minutes of the local time zone   * relative to UTC.  The time represented by this object is used to   * determine if we should use daylight savings.   */  public int getTimezoneOffset()  {    Calendar cal = Calendar.getInstance();    cal.setTimeInMillis(time);    return (cal.get(Calendar.ZONE_OFFSET)	    + cal.get(Calendar.DST_OFFSET)) / (60 * 1000);  }  /**   * Sets the time which this Object should represented.   * @param time the time in milliseconds since the epoch.  */  public void setTime(long time)  {    this.time = time;  }  /**   * Tests if this date is after the specified date.   * @param when the other date   * @return true, if the date represented by this Object is   * strictly later than the time represented by when.     */  public boolean after(Date when)  {    return time > when.time;  }  /**   * Tests if this date is before the specified date.   * @param when the other date   * @return true, if the date represented by when is strictly later   * than the time represented by this object.   */  public boolean before(Date when)  {    return time < when.time;  }  /**   * Compares two dates for equality.   * @param obj the object to compare.   * @return true, if obj is a Date object and the date represented   * by obj is exactly the same as the time represented by this   * object.     */  public boolean equals(Object obj)  {    return (obj instanceof Date && time == ((Date) obj).time);  }  /**   * Compares two dates.   * @param when the other date.   * @return 0, if the date represented   * by obj is exactly the same as the time represented by this   * object, a negative if this Date is before the other Date, and   * a positive value otherwise.     */  public int compareTo(Date when)  {    return (time < when.time) ? -1 : (time == when.time) ? 0 : 1;  }  /**   * Compares this Date to another.  This behaves like   * <code>compareTo(Date)</code>, but it may throw a   * <code>ClassCastException</code>   * @param obj the other date.   * @return 0, if the date represented   * by obj is exactly the same as the time represented by this   * object, a negative if this Date is before the other Date, and   * a positive value otherwise.     * @exception ClassCastException if obj is not of type Date.   */  public int compareTo(Object obj)  {    return compareTo((Date) obj);  }  public int hashCode()  {    return (int) time ^ (int) (time >>> 32);  }  private static final String[] weekNames = { "Sun", "Mon", "Tue", "Wed",					      "Thu", "Fri", "Sat" };  private static final String[] monthNames = { "Jan", "Feb", "Mar", "Apr",					       "May", "Jun", "Jul", "Aug",					       "Sep", "Oct", "Nov", "Dec" };  public String toString()  {    Calendar cal = Calendar.getInstance();    cal.setTimeInMillis(time);    String day = "0" + cal.get(Calendar.DATE);    String hour = "0" + cal.get(Calendar.HOUR_OF_DAY);    String min = "0" + cal.get(Calendar.MINUTE);    String sec = "0" + cal.get(Calendar.SECOND);    String year = "000" + cal.get(Calendar.YEAR);    return weekNames[cal.get(Calendar.DAY_OF_WEEK) - 1] + " "      + monthNames[cal.get(Calendar.MONTH)] + " "      + day.substring(day.length() - 2) + " "      + hour.substring(hour.length() - 2) + ":"      + min.substring(min.length() - 2) + ":"      + sec.substring(sec.length() - 2) + " "      +      cal.getTimeZone().getDisplayName(cal.getTimeZone().inDaylightTime(this),				       TimeZone.SHORT) + " " +      year.substring(year.length() - 4);  }  /** Format this object in a locale-specific way.   * @deprecated Use DateFormat.format(Date)   */  public String toLocaleString()  {    return java.text.DateFormat.getInstance().format(this);  }  /** Format this object in a standard format in the GMT timezone.   * @deprecated Use DateFormat.format(Date) with a GMT TimeZone.   */  public String toGMTString()  {    java.text.DateFormat format = java.text.DateFormat.getInstance();    format.setTimeZone(TimeZone.getTimeZone("GMT"));    return format.format(this);  }  private static int parseTz(String tok, char sign)    throws IllegalArgumentException  {    int num;    try      {	// parseInt doesn't handle '+' so strip off sign.	num = Integer.parseInt(tok.substring(1));      }    catch (NumberFormatException ex)      {	throw new IllegalArgumentException(tok);      }    // Convert hours to minutes.    if (num < 24)      num *= 60;    else      num = (num / 100) * 60 + num % 100;    return sign == '-' ? -num : num;  }  private static int parseMonth(String tok)  {    // Initialize strings for month names.    // We could possibly use the fields of DateFormatSymbols but that is    // localized and thus might not match the English words specified.    String months[] = { "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY",			"JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER",			"NOVEMBER", "DECEMBER" };    int i;    for (i = 0; i < 12; i++)      if (months[i].startsWith(tok))        return i;    // Return -1 if not found.    return -1;  }  private static boolean parseDayOfWeek(String tok)  {    // Initialize strings for days of the week names.    // We could possibly use the fields of DateFormatSymbols but that is    // localized and thus might not match the English words specified.    String daysOfWeek[] = { "SUNDAY", "MONDAY", "TUESDAY", "WEDNESDAY",			    "THURSDAY", "FRIDAY", "SATURDAY" };    int i;    for (i = 0; i < 7; i++)      if (daysOfWeek[i].startsWith(tok))        return true;    return false;  }  /** Parse a String and return the time it represents.   * @param s The String to parse.   * @deprecated Use DateFormat.parse(String)   */  public static long parse(String string)  {    // Initialize date/time fields before parsing begins.    int year = -1;    int month = -1;    int day = -1;    int hour = -1;    int minute = -1;    int second = -1;    int timezone = 0;    boolean localTimezone = true;    // Trim out any nested stuff in parentheses now to make parsing easier.    StringBuffer buf = new StringBuffer();    int parenNesting = 0;    int len = string.length();    for (int i = 0;  i < len;  i++)      {	char ch = string.charAt(i);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩在线观看一区二区| 久久综合九色综合久久久精品综合| 亚洲欧洲国产日本综合| 成人av中文字幕| 亚洲欧美日韩在线| 91久久久免费一区二区| 亚洲一二三四久久| 欧美一区二区三区思思人| 美女在线一区二区| 国产人成亚洲第一网站在线播放| 国产91丝袜在线观看| 最近日韩中文字幕| 欧美三电影在线| 精品一区免费av| 欧美国产一区二区| 91精彩视频在线观看| 日韩激情视频在线观看| 久久美女艺术照精彩视频福利播放 | 欧美老女人在线| 免费观看30秒视频久久| 国产日韩欧美制服另类| 91久久精品一区二区| 美国三级日本三级久久99 | 久久久久久久电影| 99re这里只有精品6| 日韩成人av影视| 中文字幕制服丝袜一区二区三区 | 亚洲高清中文字幕| 欧美videossexotv100| 不卡影院免费观看| 日韩国产欧美在线观看| 久久久精品黄色| 欧美午夜寂寞影院| 国产麻豆视频精品| 亚洲高清免费在线| 国产欧美视频在线观看| 欧美在线视频你懂得| 精品一区二区三区免费毛片爱| 最新中文字幕一区二区三区| 欧美一区三区二区| 在线日韩av片| 成人涩涩免费视频| 久久99精品国产麻豆婷婷| 亚洲欧洲三级电影| 久久久久久久综合| 欧美理论电影在线| 色婷婷av一区二区三区之一色屋| 久久精品72免费观看| 一区二区三区四区五区视频在线观看 | 日本二三区不卡| 国产白丝精品91爽爽久久| 日韩精品一二三区| 亚洲激情欧美激情| 国产精品二三区| 久久无码av三级| 欧美一区二区免费视频| 欧美这里有精品| 99久久精品免费| 国产成a人亚洲精| 蓝色福利精品导航| 天天综合网 天天综合色| 亚洲欧美日韩中文播放| 国产精品色在线观看| 337p日本欧洲亚洲大胆精品| 欧美一区二区三区四区高清| 欧美色涩在线第一页| 91麻豆精品在线观看| 本田岬高潮一区二区三区| 精彩视频一区二区| 国产在线麻豆精品观看| 美女视频一区二区三区| 日本sm残虐另类| 一区二区三区视频在线观看| 久久国产精品第一页| 国产九九视频一区二区三区| 欧美精品 日韩| 在线区一区二视频| 麻豆精品国产传媒mv男同| 欧美成人精品福利| 69成人精品免费视频| 欧美精品v国产精品v日韩精品| 丁香桃色午夜亚洲一区二区三区 | 免费不卡在线观看| 国产清纯白嫩初高生在线观看91 | 一区二区成人在线视频| 欧美激情一区二区三区在线| 亚洲一二三级电影| 亚洲一级片在线观看| 成人亚洲精品久久久久软件| 欧美嫩在线观看| 国产精品久久久久久久久果冻传媒| 亚洲国产精品嫩草影院| 色婷婷亚洲婷婷| 亚洲宅男天堂在线观看无病毒| 三级欧美在线一区| 国产东北露脸精品视频| 国产在线精品一区二区| 91麻豆国产福利在线观看| 欧美综合色免费| 一区二区免费看| 秋霞午夜鲁丝一区二区老狼| 亚洲乱码中文字幕综合| 亚洲成人在线免费| 色偷偷久久人人79超碰人人澡| 精品成人a区在线观看| 国产精品久久久久影院| av在线综合网| 欧美日韩第一区日日骚| 91免费看视频| 国产亚洲欧美色| 夜夜爽夜夜爽精品视频| 免费xxxx性欧美18vr| 欧美影视一区在线| 久久一区二区视频| 亚洲精品第1页| 久久精品999| av在线不卡观看免费观看| 91麻豆国产福利精品| 中文欧美字幕免费| 青青青伊人色综合久久| 538在线一区二区精品国产| 日韩精品一区在线观看| 亚洲免费在线观看视频| 一区二区三区中文在线观看| 久久99精品国产麻豆婷婷| 4438x成人网最大色成网站| 午夜精品国产更新| 欧美一区二区视频免费观看| 精品一区二区久久久| 日韩理论片一区二区| 欧美日本一区二区三区| 国产乱码精品一品二品| 日韩电影在线观看一区| 中文字幕精品三区| 精品免费国产二区三区| 欧美日韩在线精品一区二区三区激情 | 奇米色一区二区| 欧美性猛交xxxxxxxx| 亚洲美女少妇撒尿| 日韩美女天天操| 北条麻妃国产九九精品视频| 亚洲天堂精品视频| 91在线视频播放| 国产成人精品免费| 国产精品免费网站在线观看| 精品无人码麻豆乱码1区2区| 欧美电影免费提供在线观看| 精品影视av免费| 国产午夜精品福利| 91女神在线视频| 美女视频黄久久| 国产精品电影院| 91精彩视频在线| 欧美国产精品久久| 91色综合久久久久婷婷| 久久99精品国产麻豆不卡| 一区二区三区四区在线| 国产精品久久久久久亚洲毛片 | 99re热视频精品| 国产精品资源站在线| 看片网站欧美日韩| 亚洲精品乱码久久久久久黑人| 亚洲精品在线电影| 欧美性感一区二区三区| 亚洲一区二区三区激情| 精品欧美一区二区久久| 91碰在线视频| 99国产精品久久久久久久久久久 | 有码一区二区三区| 欧美一区二区日韩| 91精品国产综合久久久久| 欧美不卡在线视频| 亚洲色图在线看| 国产精品久久久久久久久图文区| 欧美喷水一区二区| 91精品国产全国免费观看| 91免费版在线看| 国产精品性做久久久久久| 亚洲国产成人av| 亚洲美女屁股眼交3| 国产精品久久久久一区| 国产精品久久久久久久久快鸭 | 久久久精品黄色| 色丁香久综合在线久综合在线观看| 免费一级片91| 免费成人在线观看| 成人美女视频在线看| 99国产精品久久久| 日韩一级黄色大片| 久久久久久久免费视频了| 天堂av在线一区| 91国偷自产一区二区三区观看| 欧美精品一区二区三区蜜桃| 亚洲va国产va欧美va观看| 99久久伊人精品| 中文字幕欧美区| 懂色av中文一区二区三区| 欧美久久一区二区| 国产精品久久久久一区二区三区共| 一区二区三区在线观看网站|