Small fixes.

This commit is contained in:
Christian P. MOMON 2010-08-15 17:08:46 +02:00
parent 6b0623ffc1
commit d1f27dcb7c
2 changed files with 8 additions and 8 deletions

View file

@ -20,10 +20,10 @@ public class DateHelper
{ {
//static private org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger (DateHelper.class); //static private org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger (DateHelper.class);
static final String EUROPEAN_DATE_FORMAT = "%02/%02/%04"; static final String EUROPEAN_DATE_FORMAT = "%02d/%02d/%04d";
static final String RAW_DATE_FORMAT = "%04%02%02"; static final String RAW_DATE_FORMAT = "%04d%02d%02d";
static final String ISO_DATE_FORMAT = "%04-%02-%02"; static final String ISO_DATE_FORMAT = "%04d-%02d-%02d";
static final String AMERICAN_DATE_FORMAT = "%02/%02/%04"; static final String AMERICAN_DATE_FORMAT = "%02d/%02d/%04d";
static final String EUROPEAN_DATE_PATTERN = "^([0123]{0,1}\\d)/([01]{0,1}\\d)/(\\d\\d\\d\\d)$"; static final String EUROPEAN_DATE_PATTERN = "^([0123]{0,1}\\d)/([01]{0,1}\\d)/(\\d\\d\\d\\d)$";
static final String RAW_DATE_PATTERN = "^(\\d\\d\\d\\d)([01]\\d)([0123]\\d)$"; static final String RAW_DATE_PATTERN = "^(\\d\\d\\d\\d)([01]\\d)([0123]\\d)$";

View file

@ -15,10 +15,10 @@ public class DateTimeHelper
{ {
//static private org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger (DateTimeHelper.class); //static private org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger (DateTimeHelper.class);
static final String EUROPEAN_DATE_FORMAT = "%02/%02/%04 %02:%02:%02"; static final String EUROPEAN_DATE_FORMAT = "%02d/%02d/%04d %02d:%02d:%02d";
static final String RAW_DATE_FORMAT = "%04%02%02 %02:%02:%02"; static final String RAW_DATE_FORMAT = "%04d%02d%02d %02d:%02d:%02d";
static final String ISO_DATE_FORMAT = "%04-%02-%02 %02:%02:%02"; static final String ISO_DATE_FORMAT = "%04d-%02d-%02d %02d:%02d:%02d";
static final String AMERICAN_DATE_FORMAT = "%02/%02/%04 %02:%02:%02"; static final String AMERICAN_DATE_FORMAT = "%02d/%02d/%04d %02d:%02d:%02d";
static final String EUROPEAN_DATE_PATTERN = "^([0123]{0,1}\\d)/([01]{0,1}\\d)/(\\d\\d\\d\\d)$"; static final String EUROPEAN_DATE_PATTERN = "^([0123]{0,1}\\d)/([01]{0,1}\\d)/(\\d\\d\\d\\d)$";
static final String RAW_DATE_PATTERN = "^(\\d\\d\\d\\d)([01]\\d)([0123]\\d)$"; static final String RAW_DATE_PATTERN = "^(\\d\\d\\d\\d)([01]\\d)([0123]\\d)$";