Java tutorial
//package com.java2s; import java.util.*; public class Main { public static String convertRelativeTimeTarget(int n) { n /= 1000; return String.format(Locale.US, "%02d:%02d:%02d", n / 60 / 60, n / 60 % 60, n % 60); } }