這會傳回 Day.js 物件自 Unix 紀元以來的毫秒數。 dayjs('2019-01-25').valueOf() // 1548381600000 +dayjs(1548381600000) // 1548381600000 若要從 Day.js 物件取得 Unix 時間戳記(自紀元以來的秒數),您應該使用 Unix 時間戳記。