教程 dayjs tutorial

BigIntSupport

BigIntSupport 扩展 dayjs(), dayjs.unix API 以支持 BigInt 参数。

javascript
var bigIntSupport = require("dayjs/plugin/bigIntSupport");
dayjs.extend(bigIntSupport);

dayjs(BigInt(1666310421101));
dayjs.unix(BigInt(1666311003));