comparison 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
comparison
equal deleted inserted replaced
141:b02310d7ffee 142:25be806da62f
39 * Default Logging instance 39 * Default Logging instance
40 */ 40 */
41 private static Logger sLogger = Logger.getLogger(DateUtils.class); 41 private static Logger sLogger = Logger.getLogger(DateUtils.class);
42 private static boolean sDebug = sLogger.isDebugEnabled(); 42 private static boolean sDebug = sLogger.isDebugEnabled();
43 43
44 private static final String DATE_PATTERN = "yyyy.MM.dd HH:mm:ss"; 44 public static final String DATE_PATTERN = "yyyy.MM.dd HH:mm:ss";
45 private static final String DATE_PATTERN1 = "dd-MMM-yyyy HH:mm:ss"; 45 public static final String DATE_PATTERN1 = "dd-MMM-yyyy HH:mm:ss";
46 private static final String TimeRangeFilterPattern = "yyyy-MM-dd'T'HH:mm:ssZ"; 46 public static final String TimeRangeFilterPattern = "yyyy-MM-dd'T'HH:mm:ssZ";
47 private static final String TimeRangeFilterFormPattern = "dd.MM.yyyy HH:mm"; 47 public static final String TimeRangeFilterFormPattern = "dd.MM.yyyy HH:mm";
48 48
49 public static String getPatternedDateSDF(Date pDate) { 49 public static String getPatternedDateSDF(Date pDate) {
50 SimpleDateFormat fmt = new SimpleDateFormat(); 50 SimpleDateFormat fmt = new SimpleDateFormat();
51 fmt.applyPattern(DATE_PATTERN); 51 fmt.applyPattern(DATE_PATTERN);
52 return fmt.format(pDate); 52 return fmt.format(pDate);

http://dive4elements.wald.intevation.org