IsoWeek
IsoWeek 添加了 .isoWeek()
API 来获取或设置一年中的 ISO 周。并添加 .isoWeekday()
来获取或设置 ISO 星期几,添加 .isoWeekYear()
来获取 ISO 星期年,并扩展 .startOf
.endOf
API 以支持单位 isoWeek
。
¥IsoWeek adds .isoWeek()
API to get or set the ISO week of the year. And adds .isoWeekday()
to get or set ISO day of the week and .isoWeekYear()
to get ISO week-year, and extends .startOf
.endOf
APIs to support unit isoWeek
.
var isoWeek = require("dayjs/plugin/isoWeek");
// import isoWeek from 'dayjs/plugin/isoWeek' // ES 2015
dayjs.extend(isoWeek);
dayjs().isoWeek();
dayjs().isoWeekday();
dayjs().isoWeekYear();