最简单、最直观的日期和时间库
The simplest, most intuitive date and time library.
npm install date-and-timeimport { format } from 'date-and-time';
format(new Date(), 'ddd, MMM DD YYYY');
// => Wed, Jul 09 2025const { format } = require('date-and-time');
format(new Date(), 'ddd, MMM DD YYYY');
// => Wed, Jul 09 2025Version 4.x has been completely rewritten in TypeScript and some features from 3.x are no longer compatible. The main changes are as follows:
timezone and timespan plugins have been integrated into the main libraryES2021 and no longer supports older browsersFor details, please refer to migration.md.
For comprehensive documentation and examples, visit: GitHub Pages
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
暂无开放 Issues,或尚未同步最近议题。