tyme4ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Tyme License

Tyme是一个非常强大的日历工具库,可以看作 Lunar 的升级版,拥有更优的设计和扩展性,支持公历和农历、星座、干支、生肖、节气、法定假日等。

示例

// install
npm init -y
npm i typescript -D
npm i ts-node -D
npm i tyme4ts
 
// test.ts
import {SolarDay} from 'tyme4ts';
 
const solar = SolarDay.fromYmd(1986, 5, 29);
 
// 1986年5月29日
console.log(solar.toString());

// 农历丙寅年四月廿一
console.log(solar.getLunarDay().toString());
 
// run
ts-node test.ts

文档

请移步至 https://6tail.cn/tyme.html

Star History

Star History Chart

Readme

Keywords

Package Sidebar

Install

npm i tyme4ts

Weekly Downloads

28

Version

1.0.5

License

MIT

Unpacked Size

724 kB

Total Files

40

Last publish

Collaborators

  • 6tail