tablesorter/dist/js/parsers/parser-date.min.js

4 lines
587 B
JavaScript
Raw Normal View History

2016-08-22 15:41:07 +00:00
/*! 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);