API/api.medcify.app/node_modules/dayjs/esm/plugin/dayOfYear/index.js
2022-09-26 11:41:44 +05:30

8 lines
274 B
JavaScript

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');
};
});