Tries to parse a date time string returned by a kadmin get_principal
operation.
Tries to parse a date time string returned by a kadmin get_principal
operation.
The string must be in the format "EEE MMM dd HH:mm:ss zzz yyyy"
, see
Joda Time DateTimeFormat
for an explanation of the format.
If the string is either "[never]"
or "[none]"
the Never
object will be returned.
Otherwise the string will be parsed in the following way:
dateTimeString
.DateTimeFormat
cannot process time zones, the timezone will be removed from dateTimeString
, and an
attempt to match it against one of DateTimeZone.getAvailableIDs
will be made. If no match is found the default
timezone will be used.DateTimeFormat
will be constructed using the format above (except the time zone), the
computed timezone and the default locale.dateString
(the result of step 1 and 2) will be parsed to a DateTime
using the format
constructed in step 4.
the string containing the date time.
Never
or an AbsoluteDateTime