|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Date | +--com.ibm.itim.common.AttributeDateValue
Class for handling time in Generalized Time Format as specified by X.208. This time is of the format YYYYMMDDHHMMSSZ where Z is the time zone (using GMT is recomended by RFC 2252).
Constructor Summary | |
---|---|
AttributeDateValue(java.util.Date date)
Construct a AttributeDateValue with a Date. |
|
AttributeDateValue(int year,
int month,
int day,
int hour,
int minute,
int second)
Construct a GeneralizedTime from a set of time arguments. |
|
AttributeDateValue(long systemTime)
Construct a AttributeDateValue with a Date. |
|
AttributeDateValue(java.lang.String generalizedTimeString)
This constructor is modified to use the method setGeneralizedTimeStringData() which is now private. |
|
AttributeDateValue(java.lang.String generalizedTimeString,
boolean ignoreSecond)
This method constructs the date data including seconds |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Overrides the method from java.lang.Object. |
java.lang.String |
getDD()
Returns a String representing this AttributeDateValue's day of the month field. |
java.lang.String |
gethh()
Returns a String representing the 2 digit hour of the day in this AttributeDateValue. |
java.lang.String |
getmm()
Returns a String representing the 2 digit minutes of the hour in this AttributeDateValue. |
java.lang.String |
getMM()
Returns a String representing this AttributeDateValue's month field. |
java.lang.String |
getYY()
Returns a String representing the last 2 digits of this AttributeDateValue's year field. |
java.lang.String |
getYYYY()
Returns a String representing this AttributeDateValue's 4 digit year. |
int |
hashCode()
Overrides the method from java.lang.Object. |
java.lang.String |
toString()
Overrides the method from java.lang.Object. |
Methods inherited from class java.util.Date |
---|
after, before, clone, compareTo, compareTo, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AttributeDateValue(java.util.Date date)
date
- Initial date for the AttributeDateValue.public AttributeDateValue(long systemTime)
systemTime
- Initial date for the AttributeDateValue as system time in milliseconds.public AttributeDateValue(java.lang.String generalizedTimeString)
generalizedTimeString
- a GeneralizedTime String.public AttributeDateValue(java.lang.String generalizedTimeString, boolean ignoreSecond)
generalizedTimeString
- ignoreSecond
- : false indicates the second data should be consideredpublic AttributeDateValue(int year, int month, int day, int hour, int minute, int second)
year
- a 4 digit year (for example, 1979)month
- a 2 digit month (for example, 06 for July). Values range from
01 to 12.day
- a 2 digit day of the month (for example, 15). Values range from
01 to 31.hour
- a 2 digit hour of the day (for example, 12). Values range from
00 to 23.minute
- a 2 digit minute of the hour (for example 15). Values range from
00 to 59.second
- a 2 digit seconds of the minute (for example 20). Values range
from 00 to 59.Method Detail |
public boolean equals(java.lang.Object obj)
equals
in class java.util.Date
obj
- another GeneralizedTime object.
public int hashCode()
hashCode
in class java.util.Date
public java.lang.String toString()
toString
in class java.util.Date
public java.lang.String getMM()
public java.lang.String getDD()
public java.lang.String getYY()
public java.lang.String getYYYY()
public java.lang.String gethh()
public java.lang.String getmm()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |