public static String lengthAsString(double seconds) {
        int hours = (int) seconds / 3600;
        int minutes = (int) (seconds % 3600) / 60;

        String response = "";

        if(hours > 0) {
            response += Integer.toString(hours) + ":";
        }
        if(minutes < 10 && hours > 0) {
            response += "0";
        }
        response += Integer.toString(minutes) + ":";
        if(((int) seconds % 60) < 10)
            response += "0";
        response += Integer.toString((int) seconds % 60);

        return response;
    }