public class PackedDate extends Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
time |
Constructor and Description |
---|
PackedDate(byte[] bytes) |
PackedDate(Date time)
Base constructor from a java.util.date object.
|
PackedDate(Date time,
Locale locale)
Base constructor from a java.util.date object.
|
PackedDate(String time) |
Modifier and Type | Method and Description |
---|---|
private byte[] |
convert(String sTime) |
boolean |
equals(Object o) |
Date |
getDate()
return the time as a date based on whatever a 2 digit year will return.
|
byte[] |
getEncoding() |
int |
hashCode() |
String |
toString() |
private byte[] time
public PackedDate(String time)
public PackedDate(Date time)
time
- a date object representing the time of interest.public PackedDate(Date time, Locale locale)
time
- a date object representing the time of interest.locale
- an appropriate Locale for producing an ASN.1 GeneralizedTime value.PackedDate(byte[] bytes)
public Date getDate() throws ParseException
ParseException
- if the date string cannot be parsed.public byte[] getEncoding()