[OFBiz] SVN: r4983 - trunk/base/src/base/org/ofbiz/base/util
jonesde at svn.ofbiz.org
jonesde at svn.ofbiz.org
Wed May 11 15:51:22 EDT 2005
Author: jonesde
Date: 2005-05-11 14:51:19 -0500 (Wed, 11 May 2005)
New Revision: 4983
Modified:
trunk/base/src/base/org/ofbiz/base/util/UtilDateTime.java
Log:
Changed some fields from protected to public to allow reuse and fix a problem reported by Hans Bakker in certain versions of Java
Modified: trunk/base/src/base/org/ofbiz/base/util/UtilDateTime.java
===================================================================
--- trunk/base/src/base/org/ofbiz/base/util/UtilDateTime.java 2005-05-11 09:12:48 UTC (rev 4982)
+++ trunk/base/src/base/org/ofbiz/base/util/UtilDateTime.java 2005-05-11 19:51:19 UTC (rev 4983)
@@ -42,18 +42,18 @@
* @since 2.0
*/
public class UtilDateTime {
- protected static String[] months = {// // to be translated over CommonMonthName, see example in accounting
+ public static final String[] months = {// // to be translated over CommonMonthName, see example in accounting
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November",
"December"
};
- protected static String[] days = {// to be translated over CommonDayName, see example in accounting
+ public static final String[] days = {// to be translated over CommonDayName, see example in accounting
"Monday", "Tuesday", "Wendesday",
"Thursday", "Friday", "Saturday", "Sunday"
};
- protected static String[][] timevals = {
+ public static final String[][] timevals = {
{"1000", "millisecond"},
{"60", "second"},
{"60", "minute"},
@@ -61,7 +61,7 @@
{"168", "week"}
};
- protected static DecimalFormat df = new DecimalFormat("0.00;-0.00");
+ public static final DecimalFormat df = new DecimalFormat("0.00;-0.00");
public static double getInterval(Date from, Date thru) {
return thru != null ? thru.getTime() - from.getTime() : 0;
More information about the Svn
mailing list