Convert Java numbers to standard time

//s to convert to standard time Public static String formatDateTime(String DateSelect,long seconds) { Int startHours = (int) (seconds/3600); Int startMinutes = (int) ((seconds%3600)/60); Int startSeconds = (int) ((seconds%3600)%60); Calendar cal=Calendar.getInstance();//Use calendar class //Time: yyyy-MM-dd HH:mm:ss String startDateStr = DateSelect + " " + startHours + ":" + startMinutes + ":" + startSeconds; System.out.println("Time:" + startDateStr);

        return startDateStr;     }