N
nhsoft.xy
eg.
/**
* Returns the day of the month represented by this <tt>Date</tt>
object.
* The value returned is between <code>1</code> and <code>31</code>
* representing the day of the month that contains or begins with
the
* instant in time represented by this <tt>Date</tt> object, as
* interpreted in the local time zone.
*
* @return the day of the month represented by this date.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by <code>Calendar.get(Calendar.DAY_OF_MONTH)</code>.
* @deprecated
*/
@Deprecated
public int getDate() {
return normalize().getDayOfMonth();
}
Why, I think Calendar.get(Calendar.DAY_OF_MONTH) is more ugly then
Date.getDate()
/**
* Returns the day of the month represented by this <tt>Date</tt>
object.
* The value returned is between <code>1</code> and <code>31</code>
* representing the day of the month that contains or begins with
the
* instant in time represented by this <tt>Date</tt> object, as
* interpreted in the local time zone.
*
* @return the day of the month represented by this date.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by <code>Calendar.get(Calendar.DAY_OF_MONTH)</code>.
* @deprecated
*/
@Deprecated
public int getDate() {
return normalize().getDayOfMonth();
}
Why, I think Calendar.get(Calendar.DAY_OF_MONTH) is more ugly then
Date.getDate()