presto-cli/src/main/java/io/prestosql/cli/FormatUtils.java/FormatUtils/formatTime
class FormatUtils:    public static String formatTime(Duration duration)
    {
        int totalSeconds = Ints.saturatedCast(duration.roundTo(SECONDS));
        int minutes = totalSeconds / 60;
        int seconds = totalSeconds % 60;

        return format("%s:%02d", minutes, seconds);
    }