You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Plugins/sorting/time-elapsed-dhms.min.js

2 lines
667 B
JavaScript

/*! © SpryMedia Ltd, caochenghua - datatables.net/license */
!function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,(t=t||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net")(e,t),n(t,0,e.document)}:n(jQuery,window,document)}(function(e,t,n,r){"use strict";e=e.fn.dataTable;return e.ext.order["time-elapsed-dhms-pre"]=function(e){var t,e=e.match(/^(\d+(?:\.\d+)?)\s*([a-z]+)/i);return e?(t={s:1,m:60,h:3600,d:86400}[e[2].toLowerCase()],parseFloat(e[1])*t):-1},e});