Mercurial > dive4elements > gnv-client
changeset 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 | b02310d7ffee |
children | 122fdc9da5f0 |
files | geo-backend/Changelog geo-backend/src/main/java/de/intevation/gnv/geobackend/util/DateUtils.java |
diffstat | 2 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/geo-backend/Changelog Thu Sep 24 15:24:11 2009 +0000 +++ b/geo-backend/Changelog Tue Sep 29 09:46:08 2009 +0000 @@ -1,3 +1,9 @@ +2009-09-29 Tim Englich <tim.englich@intevation.de> + + * src/main/java/de/intevation/gnv/geobackend/util/DateUtils.java (DATE_PATTERN) Edited: + Make the Constants assessible for other Parts of the Project to reduce the TouchPoints for + Dateformats. + 2009-09-24 Tim Englich <tim.englich@intevation.de> * src/main/java/de/intevation/gnv/geobackend/base/ResultDescriptor.java Edited,
--- 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();