6tail / tyme4ts Goto Github PK
View Code? Open in Web Editor NEWTyme是一个非常强大的日历工具库,可以看作 Lunar 的升级版,拥有更优的设计和扩展性,支持公历和农历、星座、干支、生肖、节气、法定假日等。
Home Page: https://6tail.cn/tyme.html
License: MIT License
Tyme是一个非常强大的日历工具库,可以看作 Lunar 的升级版,拥有更优的设计和扩展性,支持公历和农历、星座、干支、生肖、节气、法定假日等。
Home Page: https://6tail.cn/tyme.html
License: MIT License
import {SolarDay, JulianDay} from 'tyme4ts';
const solar = SolarDay.fromYmd(2024, 2, 29);// 支持 SolarDay.fromYmd('2024', '02', '29');
// 1986年5月29日
console.log(solar.toString());
// 农历丙寅年四月廿一
console.log(solar.getLunarDay().toString());
let term = solar.getTerm()
console.log(term.getName()) // 日历标注节气只标注第一天
let julianday = term.getJulianDay();
let solarDay = julianday.getSolarDay(); // 获取节气第一天
console.log(solarDay.toString())
~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.