org.deegree_impl.tools
Class TimeTools

java.lang.Object
  extended byorg.deegree_impl.tools.TimeTools

public class TimeTools
extends java.lang.Object


Field Summary
static int DAY
           
static int HOUR
           
static int MINUTE
           
static int MONTH
           
static int SECOND
           
static int YEAR
           
 
Constructor Summary
TimeTools()
           
 
Method Summary
static java.util.GregorianCalendar createCalendar(java.lang.String isoDate)
          creates an instance of a GregorianCalendar from an ISO timestamp
static java.util.GregorianCalendar createCalendarISO8601(java.lang.String isoDate)
          creates an instance of a GregorianCalendar from an ISO 8601 timestamp
static int get(int value, java.lang.String isoTimestamp)
          returns a part of the submitted iso-formatted timestamp. possible values for value are: YEAR MONTH DAY HOUR MINUTE SECOND
static int getISO8601(int value, java.lang.String isoTimestamp)
          returns a part of the submitted iso-formatted timestamp. possible values for value are: YEAR MONTH DAY HOUR MINUTE SECOND
static java.lang.String getISOFormattedTime()
          get the current timestamp in ISO format
static java.lang.String getISOFormattedTime(java.util.Calendar cal)
          get the current timestamp in ISO format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

YEAR

public static int YEAR

MONTH

public static int MONTH

DAY

public static int DAY

HOUR

public static int HOUR

MINUTE

public static int MINUTE

SECOND

public static int SECOND
Constructor Detail

TimeTools

public TimeTools()
Method Detail

getISOFormattedTime

public static java.lang.String getISOFormattedTime()
get the current timestamp in ISO format


getISOFormattedTime

public static java.lang.String getISOFormattedTime(java.util.Calendar cal)
get the current timestamp in ISO format


get

public static int get(int value,
                      java.lang.String isoTimestamp)
returns a part of the submitted iso-formatted timestamp. possible values for value are:


getISO8601

public static int getISO8601(int value,
                             java.lang.String isoTimestamp)
returns a part of the submitted iso-formatted timestamp. possible values for value are:


createCalendar

public static java.util.GregorianCalendar createCalendar(java.lang.String isoDate)
creates an instance of a GregorianCalendar from an ISO timestamp


createCalendarISO8601

public static java.util.GregorianCalendar createCalendarISO8601(java.lang.String isoDate)
creates an instance of a GregorianCalendar from an ISO 8601 timestamp