public final class TUtil extends Object
Time
, used for Constraint
checks VUtil.validateConstraints(org.apache.directory.fortress.core.model.Session, org.apache.directory.fortress.core.util.VUtil.ConstraintType, boolean)
.
This utility processes custom date formats and should not be used by external programs.Modifier and Type | Method and Description |
---|---|
static Date |
decodeGeneralizedTime(String inputString)
Convert from raw ldap generalized time format to
Date . |
static String |
encodeGeneralizedTime(Date date)
Convert from java date
Date format to raw ldap generalized time format. |
static Time |
getCurrentTime()
Get the curent timestamp from Java and convert to
Time format. |
public static Time getCurrentTime()
Time
format.public static Date decodeGeneralizedTime(String inputString) throws ParseException
Date
.
to decode the string.inputString
- containing raw ldap generalized time formatted string.Date
.ParseException
Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621