tablesorter/dist/js/parsers/parser-date.min.js
2016-08-22 10:41:07 -05:00

4 lines
587 B
JavaScript

/*! Parser: dates - updated 8/22/2016 (v2.27.5) */
!function(a){"use strict";/*! Sugar (https://sugarjs.com/docs/#/DateParsing) */
a.tablesorter.addParser({id:"sugar",is:function(){return!1},format:function(a){var b=Date.create||Sugar.Date.create,c=b?b(a):a?new Date(a):a;return c instanceof Date&&isFinite(c)?c.getTime():a},type:"numeric"}),/*! Datejs (http://www.datejs.com/) */
a.tablesorter.addParser({id:"datejs",is:function(){return!1},format:function(a){var b=Date.parse?Date.parse(a):a?new Date(a):a;return b instanceof Date&&isFinite(b)?b.getTime():a},type:"numeric"})}(jQuery);