Mercurial > dive4elements > gnv-client
diff geo-backend/src/main/java/de/intevation/gnv/geobackend/util/DateUtils.java @ 142:25be806da62f
Make the Constants assessible for other Parts of the Project to reduce the TouchPoints for Dateformats
geo-backend/trunk@148 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 29 Sep 2009 09:46:08 +0000 |
parents | 110e3ac1b7d2 |
children | 12f88239fb33 |
line wrap: on
line diff
--- a/geo-backend/src/main/java/de/intevation/gnv/geobackend/util/DateUtils.java Thu Sep 24 15:24:11 2009 +0000 +++ b/geo-backend/src/main/java/de/intevation/gnv/geobackend/util/DateUtils.java Tue Sep 29 09:46:08 2009 +0000 @@ -41,10 +41,10 @@ private static Logger sLogger = Logger.getLogger(DateUtils.class); private static boolean sDebug = sLogger.isDebugEnabled(); - private static final String DATE_PATTERN = "yyyy.MM.dd HH:mm:ss"; - private static final String DATE_PATTERN1 = "dd-MMM-yyyy HH:mm:ss"; - private static final String TimeRangeFilterPattern = "yyyy-MM-dd'T'HH:mm:ssZ"; - private static final String TimeRangeFilterFormPattern = "dd.MM.yyyy HH:mm"; + public static final String DATE_PATTERN = "yyyy.MM.dd HH:mm:ss"; + public static final String DATE_PATTERN1 = "dd-MMM-yyyy HH:mm:ss"; + public static final String TimeRangeFilterPattern = "yyyy-MM-dd'T'HH:mm:ssZ"; + public static final String TimeRangeFilterFormPattern = "dd.MM.yyyy HH:mm"; public static String getPatternedDateSDF(Date pDate) { SimpleDateFormat fmt = new SimpleDateFormat();