Skip to main content

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__())
 
# 1406年赖买丹月20日
print(solar_day.get_hijri_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

Metadata

Release files for tyme4py 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tyme4py 1.5.0
File Size Uploaded
tyme4py-1.5.0.tar.gz 103.8 kB Details

Release files / tyme4py-1.5.0.tar.gz

Download URL tyme4py-1.5.0.tar.gz
Size 103.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4edc04eb94f01d5eb59ffef87db03d2ad6e46e52626532f1a8963c037bd6b8f5
BLAKE2b-256 checksum
How to use checksums
ce47e899c85fe1f5788782f55a0ed235c65c3620a072cfb18388a63353b23074
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release history Release notifications | RSS feed

This release

1.5.0 This release

1 release file

1.4.7

1 release file

1.4.6

1 release file

1.4.5

1 release file

1.4.4

1 release file

1.4.3

1 release file

1.4.2

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.3.9

1 release file

1.3.8

1 release file

1.3.7

1 release file

1.3.6

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page