Package org.cdlib.mrt.core
Class DateState
java.lang.Object
org.cdlib.mrt.core.DateState
- All Implemented Interfaces:
Serializable,StateStringInf
Basic Date State information
- Author:
- dloy
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDate()Get standard Date for this StateReturn date in Iso formatReturn date in Iso format - ZululongReturn second format of this Datereturn max Date comparing this Date for another DateStatevoidSet Date value for this StatetoString()Default toString to Iso format date
-
Field Details
-
DBDATEPATTERN
- See Also:
-
date
-
-
Constructor Details
-
DateState
Constructor- Parameters:
date- used for state
-
DateState
public DateState(long seconds) Constructor- Parameters:
seconds- base second count
-
DateState
Contructor- Parameters:
dateTime- Iso format for date
-
DateState
public DateState()Contructor- Parameters:
dateTime- Iso format for date
-
-
Method Details
-
getDate
Get standard Date for this State- Returns:
- standard date
-
setDate
Set Date value for this State- Parameters:
date- Date value used for State
-
getIsoDate
Return date in Iso format- Returns:
- Iso format date
-
getIsoZDate
Return date in Iso format - Zulu- Returns:
- Iso format date
-
toString
Default toString to Iso format date -
getTimeLong
public long getTimeLong()Return second format of this Date- Returns:
- second count for this Date
-
maxTime
return max Date comparing this Date for another DateState- Parameters:
test- compare DateState- Returns:
- this or test DateState that is max date
-