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.
28 lines
928 B
28 lines
928 B
!(function (t, e) {
|
|
if ('object' == typeof exports && 'undefined' != typeof module) {
|
|
module.exports = e();
|
|
} else {
|
|
if ('function' == typeof define && define.amd) {
|
|
define(e);
|
|
} else {
|
|
(t = 'undefined' != typeof globalThis ? globalThis : t || self).dayjs_plugin_buddhistEra = e();
|
|
}
|
|
}
|
|
})(this, function () {
|
|
'use strict';
|
|
|
|
return function (t, e) {
|
|
var n = e.prototype;
|
|
var i = n.format;
|
|
n.format = function (t) {
|
|
var that = this;
|
|
var n = (t || 'YYYY-MM-DDTHH:mm:ssZ').replace(/(\[[^\]]+])|BBBB|BB/g, function (t, n) {
|
|
var i;
|
|
var o = String(that.$y + 543);
|
|
var f = 'BB' === t ? [o.slice(-2), 2] : [o, 4];
|
|
return n || (i = that.$utils()).s.apply(i, f.concat(['0']));
|
|
});
|
|
return i.bind(this)(n);
|
|
};
|
|
};
|
|
});
|
|
|