简体中文
主题
该方法返回一个新的 Day.js 对象,并将其设置为使用本地时间。
TIP
此功能需要 UTC 插件才能正常工作。
dayjs.extend(utc); var a = dayjs.utc(); a.format(); // 2019-03-06T00:00:00Z a.local().format(); //2019-03-06T08:00:00+08:00
了解更多关于 UTC 模式 的详细信息。