Lines Matching refs:Date

42  * The class <code>Date</code> represents a specific instant
45 * Prior to JDK&nbsp;1.1, the class <code>Date</code> had two additional
53 * The corresponding methods in <code>Date</code> are deprecated.
55 * Although the <code>Date</code> class is intended to reflect
94 * In all methods of class <code>Date</code> that accept or return
129 public class Date
130 implements java.io.Serializable, Cloneable, Comparable<Date>
144 private transient BaseCalendar.Date cdate;
149 /* use serialVersionUID from modified java.util.Date for
150 * interoperability with JDK1.1. The Date was modified to write
156 * Allocates a <code>Date</code> object and initializes it so that
162 public Date() {
167 * Allocates a <code>Date</code> object and initializes it to
175 public Date(long date) {
180 * Allocates a <code>Date</code> object and initializes it so that
194 public Date(int year, int month, int date) {
199 * Allocates a <code>Date</code> object and initializes it so that
217 public Date(int year, int month, int date, int hrs, int min) {
222 * Allocates a <code>Date</code> object and initializes it so that
241 public Date(int year, int month, int date, int hrs, int min, int sec) {
252 cdate = (BaseCalendar.Date) cal.newCalendarDate(TimeZone.getDefaultRef());
259 * Allocates a <code>Date</code> object and initializes it so that
262 * {@link Date#parse} method.
266 * @see java.util.Date#parse(java.lang.String)
271 public Date(String s) {
279 Date d = null;
281 d = (Date)super.clone();
283 d.cdate = (BaseCalendar.Date) cdate.clone();
293 * minute, exactly as for the <tt>Date</tt> constructor with six
328 BaseCalendar.Date udate = (BaseCalendar.Date) cal.newCalendarDate(null);
331 // Use a Date instance to perform normalization. Its fastTime
333 Date d = new Date(0);
389 * the time when the Date class is initialized.
588 synchronized (Date.class) {
604 BaseCalendar.Date ldate = (BaseCalendar.Date) cal.newCalendarDate(TimeZone.getDefaultRef());
609 BaseCalendar.Date udate = (BaseCalendar.Date) cal.newCalendarDate(null); // no time zone
639 * by this <code>Date</code> object, as interpreted in the local
653 * Sets the year of this <tt>Date</tt> object to be the specified
654 * value plus 1900. This <code>Date</code> object is modified so
674 * with the instant in time represented by this <tt>Date</tt> object.
690 * <tt>Date</tt> object is modified so that it represents a point
712 BaseCalendar.Date d = getCalendarDate();
720 * Returns the day of the month represented by this <tt>Date</tt> object.
723 * instant in time represented by this <tt>Date</tt> object, as
738 * Sets the day of the month of this <tt>Date</tt> object to the
739 * specified value. This <tt>Date</tt> object is modified so that
763 * the instant in time represented by this <tt>Date</tt> object,
777 * Returns the hour represented by this <tt>Date</tt> object. The
780 * with the instant in time represented by this <tt>Date</tt>
794 * Sets the hour of this <tt>Date</tt> object to the specified value.
795 * This <tt>Date</tt> object is modified so that it represents a point
826 * Sets the minutes of this <tt>Date</tt> object to the specified value.
827 * This <tt>Date</tt> object is modified so that it represents a point
859 * Sets the seconds of this <tt>Date</tt> to the specified value.
860 * This <tt>Date</tt> object is modified so that it represents a
877 * represented by this <tt>Date</tt> object.
894 * Sets this <code>Date</code> object to represent a point in time that is
909 * represented by this <tt>Date</tt> object is strictly
914 public boolean before(Date when) {
923 * by this <tt>Date</tt> object is strictly later than the
928 public boolean after(Date when) {
935 * not <code>null</code> and is a <code>Date</code> object that
938 * Thus, two <code>Date</code> objects are equal if and only if the
945 * @see java.util.Date#getTime()
948 return obj instanceof Date && getTime() == ((Date) obj).getTime();
952 * Returns the millisecond value of this <code>Date</code> object
955 static final long getMillisOf(Date date) {
959 BaseCalendar.Date d = (BaseCalendar.Date) date.cdate.clone();
966 * @param anotherDate the <code>Date</code> to be compared.
967 * @return the value <code>0</code> if the argument Date is equal to
968 * this Date; a value less than <code>0</code> if this Date
969 * is before the Date argument; and a value greater than
970 * <code>0</code> if this Date is after the Date argument.
974 public int compareTo(Date anotherDate) {
983 * value returned by the {@link Date#getTime}
996 * Converts this <code>Date</code> object to a <code>String</code>
1022 * @see java.util.Date#toLocaleString()
1023 * @see java.util.Date#toGMTString()
1027 BaseCalendar.Date date = normalize();
1062 * Creates a string representation of this <tt>Date</tt> object in an
1072 * @see java.util.Date#toString()
1073 * @see java.util.Date#toGMTString()
1075 * replaced by <code>DateFormat.format(Date date)</code>.
1084 * Creates a string representation of this <tt>Date</tt> object of
1108 * @see java.util.Date#toString()
1109 * @see java.util.Date#toLocaleString()
1111 * replaced by <code>DateFormat.format(Date date)</code>, using a
1119 BaseCalendar.Date date =
1120 (BaseCalendar.Date) cal.getCalendarDate(getTime(), (TimeZone)null);
1135 * this <code>Date</code> object.
1139 * new Date(96, 1, 14).getTimezoneOffset() returns 300</pre></blockquote>
1143 * new Date(96, 5, 1).getTimezoneOffset() returns 240</pre></blockquote>
1181 private final BaseCalendar.Date getCalendarDate() {
1184 cdate = (BaseCalendar.Date) cal.getCalendarDate(fastTime,
1190 private final BaseCalendar.Date normalize() {
1193 cdate = (BaseCalendar.Date) cal.getCalendarDate(fastTime,
1216 private final BaseCalendar.Date normalize(BaseCalendar.Date date) {
1244 date = (BaseCalendar.Date) cal.getCalendarDate(fastTime, tz);
1250 date = (BaseCalendar.Date) cal.newCalendarDate(tz);
1260 date = (BaseCalendar.Date) ncal.newCalendarDate(tz);
1293 private static final BaseCalendar getCalendarSystem(BaseCalendar.Date cdate) {