Not literally I just meant I would like an experienced eye, or a REAL programmer, to look it over and let me know is it over kill, are there other methods, etcetera.
public static class time implements Runnable { public static String time; public static String year; public static String month; public static String day; public time() {} public static void startTime() { (new Thread(new time())).start(); } public void run() { Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("k:m"); SimpleDateFormat sdf2 = new SimpleDateFormat("y:M:d"); int mm = 0; int hh = 0; int dd = 0; int MM = 0; int yy = 0; int i = 0; int i = 0; String clear = sdf2.format( cal.getTime() ); year = clear.substring(0,clear.indexOf(":")); month = clear.substring(clear.indexOf(":")+1, clear.lastIndexOf(":")); day = clear.substring(clear.lastIndexOf(":")+1, clear.length()); time = sdf.format( cal.getTime() ); mm = Integer.getInteger(time.substring(time.indexOf(":")+1,time.length())).intValue(); hh = Integer.getInteger(time.substring(0,time.indexOf(":"))).intValue(); try { do { ++i; if(i == 60){ i = 0; mm = Integer.getInteger(time.substring(time.indexOf(":"), time.length())).intValue(); ++mm; if(mm == 60) { hh = Integer.getInteger(time.substring(0,time.indexOf(":"))).intValue(); ++hh; if(hh == 24) { hh = 1; dd = Integer.getInteger(day); ++dd; if( dd > calculateDays(getMonthNumber(month)) ) { if(getMonthNumber(month) <= 12) month = months[getMonthNumber(month)]; else { month = "January"; year = String.valueOf(Integer.getInteger(year).intValue()+1); } } } } } Thread.sleep(1000); } while( true ); }catch(InterruptedException ie) { commandCenter.errorReports = commandCenter.increment(commandCenter.errorReports); commandCenter.errorReports[Array.getLength(commandCenter.errorReports)-1] = "Time Thrad has been interrupted (err:7A)"; } } }