| 
 | deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.framework.util.TimeTools
public class TimeTools
The TimeTools class can be used to format Strings to timecodes and get Calenadars of a given Timecode.
 Andreas Poth
| Field Summary | |
|---|---|
| static int | DAYA final Day representation | 
| static int | HOURA final Hour representation | 
| static int | MILLISECONDA final MilliSecond representation | 
| static int | MINUTEA final Minute representation | 
| static int | MONTHA final Month representation | 
| static int | SECONDA final Second representation | 
| static int | YEARA final Year representation | 
| Constructor Summary | |
|---|---|
| TimeTools() | |
| Method Summary | |
|---|---|
| static java.util.GregorianCalendar | createCalendar(java.lang.String isoDate)Notice that a Calendar does not consider milli seconds. | 
| static java.util.Date | createDate(java.lang.String isoDate) | 
| static java.lang.String | getISOFormattedTime() | 
| static java.lang.String | getISOFormattedTime(java.util.Calendar cal) | 
| static java.lang.String | getISOFormattedTime(java.util.Date date)returns the date calendar in ISO format | 
| static java.lang.String | getISOFormattedTime(java.util.Date date,
                                       java.util.Locale locale) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int YEAR
public static final int MONTH
public static final int DAY
public static final int HOUR
public static final int MINUTE
public static final int SECOND
public static final int MILLISECOND
| Constructor Detail | 
|---|
public TimeTools()
| Method Detail | 
|---|
public static java.lang.String getISOFormattedTime()
public static java.lang.String getISOFormattedTime(java.util.Date date)
date - 
public static java.lang.String getISOFormattedTime(java.util.Date date,
                                                   java.util.Locale locale)
date - the date object to get the time values oflocale - the locale to convert to
public static java.lang.String getISOFormattedTime(java.util.Calendar cal)
cal - a Calendar to get the timevalues of
public static java.util.GregorianCalendar createCalendar(java.lang.String isoDate)
                                                  throws java.lang.NumberFormatException
isoDate - an ISO timestamp-> year-mon-dayThours:min:sec
GregorianCalendar from an ISO timestamp
- Throws:
- java.lang.NumberFormatException- if the parsted values of the given String are no proper numbers.
public static java.util.Date createDate(java.lang.String isoDate)
isoDate - an ISO timestamp-> year-mon-dayThours:min:sec.millis
java.util.Date from an ISO timestamp
- Throws:
- java.lang.NumberFormatException- if the parsted values of the given String are no proper numbers.
| 
 | deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org