API/api.medcify.app/node_modules/dayjs/esm/plugin/dayOfYear/index.js

8 lines
274 B
JavaScript
Raw Normal View History

2022-09-26 06:11:44 +00:00
export default (function (o, c) {
var proto = c.prototype;
proto.dayOfYear = function (input) {
var dayOfYear = Math.round((this.startOf('day') - this.startOf('year')) / 864e5) + 1;
return input == null ? dayOfYear : this.add(input - dayOfYear, 'day');
};
});