com.retek.commons.util.type
Class RDate
java.lang.Object
com.retek.commons.util.type.RDate
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public final class RDate
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Comparable
- See Also:
- Serialized Form
Constructor Summary |
RDate(java.util.Date date)
|
RDate(int year,
int month,
int day)
|
RDate(int year,
int month,
int dayOfMonth,
int hourOfDay,
int minute,
int second)
|
RDate(java.lang.String dateString)
|
RDate(java.lang.String dateString,
boolean lenient)
|
RDate(java.lang.String dateString,
java.lang.String timeFormat)
|
RDate(java.lang.String dateString,
java.lang.String dateFormat,
boolean lenient)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
END_OF_TIME
public static final RDate END_OF_TIME
RDate
public RDate(java.util.Date date)
RDate
public RDate(java.lang.String dateString,
java.lang.String timeFormat)
throws RDateParseException
RDate
public RDate(int year,
int month,
int day)
RDate
public RDate(int year,
int month,
int dayOfMonth,
int hourOfDay,
int minute,
int second)
RDate
public RDate(java.lang.String dateString,
java.lang.String dateFormat,
boolean lenient)
throws RDateParseException
RDate
public RDate(java.lang.String dateString)
throws RDateParseException
RDate
public RDate(java.lang.String dateString,
boolean lenient)
throws RDateParseException
getTimeZone
public java.util.TimeZone getTimeZone()
createMilitaryTimeWithTodaysDate
public static RDate createMilitaryTimeWithTodaysDate(java.lang.String timeString)
throws RDateParseException
- Throws:
RDateParseException
getYear
public int getYear()
getMonth
public int getMonth()
getDayOfMonth
public int getDayOfMonth()
getDayOfWeek
public int getDayOfWeek()
getDayOfYear
public int getDayOfYear()
getHour
public int getHour()
getHourOfDay
public int getHourOfDay()
getMinute
public int getMinute()
getSecond
public int getSecond()
toString
public java.lang.String toString()
toString
public java.lang.String toString(java.lang.String format)
toDateTimeString
public java.lang.String toDateTimeString()
toDateTimeZoneWithSecondsString
public java.lang.String toDateTimeZoneWithSecondsString()
toDateTimeZoneString
public java.lang.String toDateTimeZoneString()
toTimeString
public java.lang.String toTimeString()
toMilitaryTimeString
public java.lang.String toMilitaryTimeString()
toDateMilitaryTimeString
public java.lang.String toDateMilitaryTimeString()
toMonthDayYearDateTimeString
public java.lang.String toMonthDayYearDateTimeString()
isSameDayOrPrior
public boolean isSameDayOrPrior(RDate when)
isSameHourOrPrior
public boolean isSameHourOrPrior(RDate when)
isSameDayOrAfter
public boolean isSameDayOrAfter(RDate when)
isBefore
public boolean isBefore(RDate when)
isBusinessDay
public boolean isBusinessDay(java.util.Set nonBusinessDates)
throws SystemException
- Throws:
SystemException
isBusinessDay
public boolean isBusinessDay(RDate date,
java.util.Set nonBusinessDates)
throws SystemException
- Throws:
SystemException
isAfter
public boolean isAfter(RDate when)
isDayBefore
public boolean isDayBefore(RDate when)
isDayAfter
public boolean isDayAfter(RDate when)
isSecAfterIgnoreDate
public boolean isSecAfterIgnoreDate(RDate when)
isHourAfter
public boolean isHourAfter(RDate when)
trimToDay
public RDate trimToDay()
trimToHour
public RDate trimToHour()
trimToMinute
public RDate trimToMinute()
isBetweenDays
public boolean isBetweenDays(RDate begin,
RDate end)
isBetween
public boolean isBetween(RDate begin,
RDate end)
getNextBusinessDay
public RDate getNextBusinessDay(java.util.Set nonBusinessDates)
throws SystemException
- Throws:
SystemException
addBusinessDays
public RDate addBusinessDays(int days,
java.util.Set nonBusinessDates)
throws SystemException
- Throws:
SystemException
addDays
public RDate addDays(int days)
addHours
public RDate addHours(int hours)
toDate
public java.util.Date toDate()
toSqlDate
public java.sql.Date toSqlDate()
toSqlTime
public java.sql.Time toSqlTime()
toSqlTimestamp
public java.sql.Timestamp toSqlTimestamp()
equalsDay
public boolean equalsDay(RDate that)
businessDaysTo
public int businessDaysTo(RDate otherDate,
java.util.Set nonBusinessDates)
throws SystemException
- Throws:
SystemException
daysTo
public int daysTo(RDate otherDate)
equals
public boolean equals(java.lang.Object that)
hashCode
public int hashCode()
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interface java.lang.Comparable
hasBeenDeserialized
public boolean hasBeenDeserialized()
Copyright © 2005 Retek Inc. All Rights Reserved.
- Generated at Fri, 01/21/2005 14:25