org.apache.directory.api.util
Class DateUtils

java.lang.Object
  extended by org.apache.directory.api.util.DateUtils

public final class DateUtils
extends Object

Gets the generalized time using the "Z" form of the g-time-zone.

Author:
Apache Directory Project

Method Summary
static Date getDate(String zuluTime)
           
static String getGeneralizedTime()
          Gets the generalized time right now.
static String getGeneralizedTime(Date date)
           
static String getGeneralizedTime(long time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDate

public static Date getDate(String zuluTime)

getGeneralizedTime

public static String getGeneralizedTime()
Gets the generalized time right now. GeneralizedTime

Returns:
the generalizedTime right now

getGeneralizedTime

public static String getGeneralizedTime(Date date)
Parameters:
date - the date to be converted to generalized time string
Returns:
given date in the generalized time string format
See Also:
getGeneralizedTime()

getGeneralizedTime

public static String getGeneralizedTime(long time)
Parameters:
time - the time value to be converted to generalized time string
Returns:
given time in generalized time string format
See Also:
getGeneralizedTime()


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.