55//** Date Utils
66//******************************************************************************
77/**
8- * Provides static methods
8+ * Provides static methods used to support web applications
99 *
1010 ******************************************************************************/
1111
@@ -52,9 +52,9 @@ public static TimeZone getUTC(){
5252 //**************************************************************************
5353 //** getDate
5454 //**************************************************************************
55- /** Used to convert a UNIX timestamp in milliseconds to a string in GMT (e.g.
56- * "Mon, 20 Feb 2012 13:04:28 GMT"). Note that this method does not rely on
57- * the java.text.SimpleDateFormat for performance reasons.
55+ /** Used to convert a UNIX timestamp in milliseconds to a string in GMT
56+ * (e.g. "Mon, 20 Feb 2012 13:04:28 GMT"). Note that this method does not
57+ * rely on the java.text.SimpleDateFormat for performance reasons.
5858 * @param milliseconds Milliseconds since January 1, 1970, 00:00:00 UTC
5959 */
6060 public static String getDate (long milliseconds ){
@@ -63,7 +63,16 @@ public static String getDate(long milliseconds){
6363 return getDate (cal );
6464 }
6565
66- private static String getDate (Calendar cal ){
66+
67+ //**************************************************************************
68+ //** getDate
69+ //**************************************************************************
70+ /** Used to convert a Calendar to a string in GMT (see above)
71+ */
72+ public static String getDate (Calendar cal ){
73+
74+ //DO NOT USE java.text.SimpleDateFormat for performance reasons!!!
75+
6776
6877 if (!cal .getTimeZone ().equals (tz )){
6978 cal = (java .util .Calendar ) cal .clone ();
0 commit comments