_ { @NotNull public static String formatTime(long millis) { long sec = millis / 1000; long min = sec / 60; sec = sec % 60; long hr = min / 60; min = min % 60; return hr + ":" + min + ":" + sec; }  static String baseFileName(String filename); static boolean same(@Nullable Object o1, @Nullable Object o2); static String getSystemTempDir(); static String getQnameParent(@Nullable String qname); static String mainName(@NotNull String taggedName); @NotNull static String arrayToString(@NotNull Collection<String> strings); static void writeFile(String path, String contents); @Nullable static String readFile(@NotNull String path); @Nullable static byte[] getBytesFromFile(@NotNull String filename); @NotNull static String readWhole(@NotNull InputStream is); static void copyResourcesRecursively(URL originUrl, File destination); static void copyJarResourcesRecursively(File destination, JarURLConnection jarConnection); static String readResource(String resource); @NotNull static String getSHA(@NotNull String path); @NotNull static String getSHA(byte[] fileContents); static String escapeQname(@NotNull String s); static String escapeWindowsPath(String path); @NotNull static Collection<String> toStringCollection(@NotNull Collection<Integer> collection); @NotNull static String joinWithSep(@NotNull Collection<String> ls, String sep, @Nullable String start,
                                     @Nullable String end); static void msg(String m); static void msg_(String m); static void testmsg(String m); static void die(String msg); static void die(String msg, Exception e); static String readWholeStream(InputStream in); @NotNull static String percent(long num, long total); @NotNull static String formatTime(long millis); static String formatNumber(Object n, int length); static boolean deleteDirectory(File directory); static String newSessionId(); static File makePath(String... files); static String makePathString(String... files); static String unifyPath(String filename); static String unifyPath(File file); static String relPath(String path1, String path2); static String projRelPath(String file); static String projAbsPath(String file); @NotNull static File joinPath(@NotNull File dir, String file); @NotNull static File joinPath(String dir, String file); static String locateTmp(String file); static String banner(String msg); static String printMem(long bytes); static String getGCStats(); static final Charset UTF_8; }
@Test public void testFormatTime() { Assert.assertEquals("6:9:3", _.formatTime(22_143_064L)); }