|
From: <pe...@us...> - 2003-12-31 00:39:33
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/time In directory sc8-pr-cvs1:/tmp/cvs-serv2460/src/java/org/neuclear/commons/time Modified Files: TimeTools.java Log Message: Added Drivers for handling different Database dialects in the entity model. Added Statement pattern to ledger, simplifying the statement writing process. Index: TimeTools.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/time/TimeTools.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TimeTools.java 24 Dec 2003 00:25:41 -0000 1.6 --- TimeTools.java 31 Dec 2003 00:39:29 -0000 1.7 *************** *** 2,5 **** --- 2,9 ---- * $Id$ * $Log$ + * Revision 1.7 2003/12/31 00:39:29 pelle + * Added Drivers for handling different Database dialects in the entity model. + * Added Statement pattern to ledger, simplifying the statement writing process. + * * Revision 1.6 2003/12/24 00:25:41 pelle * Created a kind of poor man's version of ofbiz.org's EntityEngine. It doesnt use xml to configure it, but code. *************** *** 129,132 **** --- 133,139 ---- return getDateFormatter().format(time); } + public static String formatTimeStampShort(final Date time) { + return DFS.format(time); + } private static SimpleDateFormat getDateFormatter() { *************** *** 148,151 **** --- 155,165 ---- DF.setTimeZone(TimeZone.getTimeZone("GMT")); } + // private static final String SHORT_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss,SSSzzz"; + private static final SimpleDateFormat DFS = new SimpleDateFormat(); + + { + // DFS.setTimeZone(TimeZone.getTimeZone("GMT")); + } + /** |