Hi when the time is under ten minutes after the hour (eg 8:07) the time
doesn't show the "0". Here is a straight forward fix. (change the
nice_now assignment to this (this is just after the switch statement)):
nice_now += " " +
now.get(java.util.Calendar.DAY_OF_MONTH) + " " +
now.get(java.util.Calendar.YEAR) + " " +
now.get(java.util.Calendar.HOUR) + ":" ;
int minute = now.get(java.util.Calendar.MINUTE);
if (minute < 10){
nice_now += "0";
}
nice_now += minute+" ";
I hope this helps... I know it's a small bug but I was annoyed with it.
Thanks,
Chris Heinemann
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]