public class CommonUtil { private static final int HOUR_SECOND = 60 * 60; private static final int MINUTE_SECOND = 60; public static String getTimeStrBySecond(long second) { if (second <= 0) { turn "00:00:00"; } StringBuilder sb = new StringBuilder(); long hours = second / HOUR_SECOND; if (hours 0) { second -= hours * HOUR_SECOND; } long minutes = second / MINUTE_SECOND; if (minutes 0) { second -= minutes * MINUTE_SECOND; } turn (hours = 10 ? (hours + "") : ("0" + hours) + ":" + (minutes = 10 ? (minutes + "") : ("0" + minutes)) + ":" + (second = 10 ? (second + "") : ("0" + second))); }}
本文来自网络,不代表「专升本要什么条件_专升本要几年_成人高考专升本_山东专升本信息网」立场,转载请注明出处:http://www.sdzsb8.cn/zsxx/95614.html