|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.retek.commons.util.RDateUtility
This utility is used by many of the GUI elements of the call center app to deal with RDate information, however, other aspects of the systme may use it as well.
Field Summary | |
---|---|
static java.lang.String |
DATE_MILITARY_TIME_FORMAT_STRING
|
static java.lang.String |
INVALID_DATE
|
Constructor Summary | |
---|---|
RDateUtility()
|
Method Summary | |
---|---|
static boolean |
datesEqualAllowsNull(RDate date1,
RDate date2)
Checks if the two dates are equal. |
static RDate |
getDate(java.util.Date date)
Retrieves an Rdate object for a date object. |
static RDate |
getDate(java.lang.String date)
Retrieves an RDate object for a date string. |
static RDate |
getDate(java.lang.String date,
java.lang.String time)
Retrieves an RDate for a a date and time string. |
static java.lang.String |
getDateOnlyString(RDate date)
Retrieves the date only portion of the date string. |
static java.lang.String |
getExpirationDateWithLastDayOfMonth(java.lang.String originalDate)
Retrieves an expiration date in the format YYYYMM as YYYYMMDD where DD is the last day of the month. |
static java.lang.String |
getString(RDate date)
Retrieves a formatted date string for an RDate object. |
static java.lang.String |
getTimeOnlyString(RDate date)
Retrieves the time only portion of the date string. |
static java.lang.String |
getTimeZoneString(RDate date)
Retrieves a formatted date and time zone string for an RDate object. |
static java.lang.String |
getTimeZoneStringWithSeconds(RDate date)
Retrieves a formatted date and time zone with seconds string for an RDate object. |
static java.util.Date |
getUtilDate(RDate date)
Converts an RDate to a standard util.Date. |
static void |
setTimeZones(java.util.TimeZone newLocalZone,
java.util.TimeZone newServerZone)
Sets the time zones used by the date utility. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String INVALID_DATE
public static final java.lang.String DATE_MILITARY_TIME_FORMAT_STRING
Constructor Detail |
public RDateUtility()
Method Detail |
public static void setTimeZones(java.util.TimeZone newLocalZone, java.util.TimeZone newServerZone)
newLocalZone
- The timezone of the local client application. Null becomes default.newServerZone
- The timezone of the server application.public static RDate getDate(java.lang.String date) throws com.retek.swing11.util.UIException
date
- A string representing a date.
com.retek.swing11.util.UIException
public static RDate getDate(java.util.Date date)
date
- A date object.
public static RDate getDate(java.lang.String date, java.lang.String time) throws com.retek.swing11.util.UIException
date
- The date string.time
- The time string.
com.retek.swing11.util.UIException
public static java.lang.String getString(RDate date)
public static java.lang.String getTimeZoneString(RDate date)
public static java.lang.String getTimeZoneStringWithSeconds(RDate date)
public static boolean datesEqualAllowsNull(RDate date1, RDate date2)
public static java.lang.String getDateOnlyString(RDate date)
public static java.lang.String getTimeOnlyString(RDate date)
public static java.util.Date getUtilDate(RDate date)
public static java.lang.String getExpirationDateWithLastDayOfMonth(java.lang.String originalDate)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |