tablesorter/dist/js/parsers/parser-date.min.js
Rob Garrison e3227a7af0 v2.28.11
2017-05-24 18:53:44 -05:00

4 lines
588 B
JavaScript

/*! Parser: dates - updated 5/24/2017 (v2.28.11) */
!function(e){"use strict";/*! Sugar (https://sugarjs.com/docs/#/DateParsing) */
e.tablesorter.addParser({id:"sugar",is:function(){return!1},format:function(e){var t=Date.create||Sugar.Date.create,r=t?t(e):e?new Date(e):e;return r instanceof Date&&isFinite(r)?r.getTime():e},type:"numeric"}),/*! Datejs (http://www.datejs.com/) */
e.tablesorter.addParser({id:"datejs",is:function(){return!1},format:function(e){var t=Date.parse?Date.parse(e):e?new Date(e):e;return t instanceof Date&&isFinite(t)?t.getTime():e},type:"numeric"})}(jQuery);