Time ::= CHOICE {
utcTime UTCTime,
generalTime GeneralizedTime }
This has a constructor using java.util.Date for input which generates
a DERUTCTime object if the
supplied datetime is in range 1950-01-01-00:00:00 UTC until 2049-12-31-23:59:60 UTC.
If the datetime value is outside that range, the generated object will be
DERGeneralizedTime.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ASN1Primitive |
| Access | Constructor and Description |
|---|---|
| private | |
| public | |
| public | Time(Date
a date object representing the time of interest. time, Locale an appropriate Locale for producing an ASN.1 GeneralizedTime value. locale)Creates a time object from a given date and locale - if the date is between 1950 and 2049 a UTCTime object is generated, otherwise a GeneralizedTime is used. |
| Modifier and Type | Method and Description |
|---|---|
| public Date | |
| public static Time | |
| public static Time | |
| public String | |
| public ASN1Primitive | toASN1Primitive()
Implements abstract org. Implements org. |
| time | back to summary |
|---|---|
| pack-priv ASN1Primitive time | |
| Time | back to summary |
|---|---|
| private Time(ASN1Primitive time) | |
| Time | back to summary |
|---|---|
| public Time(Date time) Creates a time object from a given date - if the date is between 1950 and 2049 a UTCTime object is generated, otherwise a GeneralizedTime is used.
| |
| Time | back to summary |
|---|---|
| public Time(Date time, Locale locale) Creates a time object from a given date and locale - if the date is between 1950 and 2049 a UTCTime object is generated, otherwise a GeneralizedTime is used. You may need to use this constructor if the default locale doesn't use a Gregorian calender so that the GeneralizedTime produced is compatible with other ASN.1 implementations. | |
| getDate | back to summary |
|---|---|
| public Date getDate() Get java.util.Date version of date+time. | |
| getInstance | back to summary |
|---|---|
| public static Time getInstance(ASN1TaggedObject obj, boolean explicit) | |
| getInstance | back to summary |
|---|---|
| public static Time getInstance(Object obj) Return a Time object from the given object. Accepted inputs:
| |
| getTime | back to summary |
|---|---|
| public String getTime() Get the date and time as a String in full form century format. | |
| toASN1Primitive | back to summary |
|---|---|
| public ASN1Primitive toASN1Primitive() Implements abstract org. Implements org. Produce an object suitable for an ASN1OutputStream.
| |