import java.util.concurrent.TimeUnit;

public class MillisToDayHrMinSec {
    public static void main(String[] args) {
        final long milliseconds = 434790192L;
        final long day = TimeUnit.MILLISECONDS.toDays(milliseconds);
        final long hours = TimeUnit.MILLISECONDS.toHours(milliseconds) - TimeUnit.DAYS.toHours(TimeUnit.MILLISECONDS.toDays(milliseconds));
        final long minutes = TimeUnit.MILLISECONDS.toMinutes(milliseconds) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(milliseconds));
        final long seconds = TimeUnit.MILLISECONDS.toSeconds(milliseconds) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(milliseconds));
        final long ms = TimeUnit.MILLISECONDS.toMillis(milliseconds) - TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(milliseconds));
        System.out.println("毫秒 :-" + milliseconds);
        System.out.println(String.format("%d 天 %d 小时 %d 分钟 %d 秒 %d 毫秒", day, hours, minutes, seconds, ms));
    }
}

Q.E.D.


曙光在头上,不抬起头,便永远只能看见物质的闪光。