Hi,

Please assist. The below code subtotal integers in datatables, I would like to know how to subtotal '%H:%i:%s' and have the grand total in the footer?

"rowGroup"=>[
                        "startRender"=> null,
                        "endRender"=>"function ( rows, group ) {

                                var totalPresent = rows
                                    .data()
                                    .pluck(8)
                                    .reduce( function ( a, b ) {
                                        if ( typeof a === 'string' ) {
                                            a = a.replace(/[^\d.-]/g, '') * 1;
                                        }
                                        if ( typeof b === 'string' ) {
                                            b = b.replace(/[^\d.-]/g, '') * 1;
                                        }
                                        return a + b;
                                    }, 0 );
                 
                                return $('<tr/>')
                                    .append( '<td colspan=\"8\">Subtotal '+group+'</td>' )
                                    .append( '<td><b>'+totalPresent+'</b></td>' );
                                
                            }",
                        "dataSrc"=>0,
                    ],

Thank you.