WeekYear
WeekYear 增加了 .weekYear()
API 来获取基于当前语言的按周计算的年份。
javascript
var weekYear = require("dayjs/plugin/weekYear"); // dependent on weekOfYear plugin
var weekOfYear = require("dayjs/plugin/weekOfYear");
dayjs.extend(weekOfYear);
dayjs.extend(weekYear);
dayjs().weekYear();