údržba
This commit is contained in:
10
CyLukTs/lukan/node_modules/dayjs/esm/plugin/isoWeeksInYear/index.d.ts
generated
vendored
Normal file
10
CyLukTs/lukan/node_modules/dayjs/esm/plugin/isoWeeksInYear/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
import { PluginFunc } from 'dayjs/esm'
|
||||
|
||||
declare const plugin: PluginFunc
|
||||
export = plugin
|
||||
|
||||
declare module 'dayjs/esm' {
|
||||
interface Dayjs {
|
||||
isoWeeksInYear(): number
|
||||
}
|
||||
}
|
15
CyLukTs/lukan/node_modules/dayjs/esm/plugin/isoWeeksInYear/index.js
generated
vendored
Normal file
15
CyLukTs/lukan/node_modules/dayjs/esm/plugin/isoWeeksInYear/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
export default (function (o, c) {
|
||||
var proto = c.prototype;
|
||||
|
||||
proto.isoWeeksInYear = function () {
|
||||
var isLeapYear = this.isLeapYear();
|
||||
var last = this.endOf('y');
|
||||
var day = last.day();
|
||||
|
||||
if (day === 4 || isLeapYear && day === 5) {
|
||||
return 53;
|
||||
}
|
||||
|
||||
return 52;
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user