dayjs
Version:
2KB immutable date time library alternative to Moment.js with the same modern API
2 lines (1 loc) • 475 B
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.dayjs_plugin_buddhistEra=e()}(this,function(){"use strict";return function(t,e){var n=e.prototype,i=n.format;n.format=function(t){var e=this,n=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/BBBB|BB/g,function(t){var n,i=String(e.$y+543),o="BB"===t?[i.slice(-2),2]:[i,4];return(n=e.$utils()).s.apply(n,o.concat(["0"]))});return i.bind(this)(n)}}});