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.
21 lines
653 B
21 lines
653 B
1 year ago
|
!(function (e, t) {
|
||
|
if ('object' == typeof exports && 'undefined' != typeof module) {
|
||
|
module.exports = t();
|
||
|
} else {
|
||
|
if ('function' == typeof define && define.amd) {
|
||
|
define(t);
|
||
|
} else {
|
||
|
(e = 'undefined' != typeof globalThis ? globalThis : e || self).dayjs_plugin_dayOfYear = t();
|
||
|
}
|
||
|
}
|
||
|
})(this, function () {
|
||
|
'use strict';
|
||
|
|
||
|
return function (e, t, n) {
|
||
|
t.prototype.dayOfYear = function (e) {
|
||
|
var t = Math.round((n(this).startOf('day') - n(this).startOf('year')) / 86400000) + 1;
|
||
|
return null == e ? t : this.add(e - t, 'day');
|
||
|
};
|
||
|
};
|
||
|
});
|