public class AttributeDateValue
extends java.util.Date
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
after, before, clone, compareTo, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, UTCpublic 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.public boolean equals(java.lang.Object obj)
equals in class java.util.Dateobj - another GeneralizedTime object.public int hashCode()
hashCode in class java.util.Datepublic java.lang.String toString()
toString in class java.util.Datepublic 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()