tyme 1.3.8 copy "tyme: ^1.3.8" to clipboard
tyme: ^1.3.8 copied to clipboard

A powerful Chinese calendar library supporting solar calendar, lunar calendar, 24 solar terms, constellations, zodiac signs, eight characters and more.

Tyme License #

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

示例 #

dependencies:
  tyme4dart: ^1.3.8
 
import 'package:tyme/tyme.dart';
 
void main() {
  // 公历
  SolarDay solarDay = SolarDay.fromYmd(1986, 5, 29);
   
  // 1986年5月29日
  print(solarDay);
   
  // 农历丙寅年四月廿一
  print(solarDay.getLunarDay());
   
  // 第十七饶迥火虎年四月廿一
  print(solarDay.getRabByungDay());
}

文档 #

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

Star History #

Star History Chart

致谢 #

  1. 感谢许剑伟老师分享的寿星天文历,本项目节气算法引自 https://github.com/sxwnl/sxwnl
  2. 感谢stonelf,本项目藏历数据引自 https://github.com/stonelf/zangli
1
likes
140
points
130
downloads

Publisher

unverified uploader

Weekly Downloads

A powerful Chinese calendar library supporting solar calendar, lunar calendar, 24 solar terms, constellations, zodiac signs, eight characters and more.

Repository (GitHub)
View/report issues

Topics

#calendar #lunar #solar #chinese #almanac

Documentation

API reference

License

MIT (license)

More

Packages that depend on tyme