Skip to main content

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

Project description

Tyme License

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

自v1.4.3起,要求python >= 3.10

示例

$ pip install tyme4py
 
from tyme4py.solar import SolarDay
 
# 通过指定年月日初始化公历日
solar_day = SolarDay.from_ymd(1986, 5, 29)
 
# 1986年5月29日
print(solar_day.__str__())
 
# 农历丙寅年四月廿一
print(solar_day.get_lunar_day().__str__())
 
# 第十七饶迥火虎年四月廿一
print(solar_day.get_rab_byung_day().__str__())

文档

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

Star History

Star History Chart

致谢

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tyme4py-1.4.6.tar.gz (102.4 kB view details)

Uploaded Source

File details

Details for the file tyme4py-1.4.6.tar.gz.

File metadata

  • Download URL: tyme4py-1.4.6.tar.gz
  • Upload date:
  • Size: 102.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for tyme4py-1.4.6.tar.gz
Algorithm Hash digest
SHA256 52c2a3a8d83041008927e0017f556559a33d8ef0316b795f45ecdcc3c0637bf8
MD5 6b0c285160e4401e84ab045e7c4afe9e
BLAKE2b-256 cc9c204fd8844d3e58a396184270e0b79b63b78f28a1c0774f66e4ab0cea1192

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page