Skip to main content

A Chinese Calendar Library in Pure Python

Project description

Chinese Calendar: http://en.wikipedia.org/wiki/Chinese_calendar

Usage

>>> LunarDate.fromSolarDate(1976, 10, 1)
LunarDate(1976, 8, 8, 1)
>>> LunarDate(1976, 8, 8, 1).toSolarDate()
datetime.date(1976, 10, 1)
>>> LunarDate(1976, 8, 8, 1).year
1976
>>> LunarDate(1976, 8, 8, 1).month
8
>>> LunarDate(1976, 8, 8, 1).day
8
>>> LunarDate(1976, 8, 8, 1).isLeapMonth
True
>>>

Limits

this library can only deal with year from 1900 to 2050 (in chinese calendar).

See also

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

lunardate-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lunardate-0.1.2-py2.5.egg (7.5 kB view details)

Uploaded Egg

File details

Details for the file lunardate-0.1.2.tar.gz.

File metadata

  • Download URL: lunardate-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lunardate-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b2b9ce3afffedb7bfeb572e359ac303fa104c113ab63dca8dde1bda696753a0c
MD5 ee4e9acebcad5b8a63a954199f6015f1
BLAKE2b-256 0d0b797b2de723ff1b4d2294b9bb43a358dc998ac66dfa31b93bf5bd9679d678

See more details on using hashes here.

File details

Details for the file lunardate-0.1.2-py2.5.egg.

File metadata

  • Download URL: lunardate-0.1.2-py2.5.egg
  • Upload date:
  • Size: 7.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lunardate-0.1.2-py2.5.egg
Algorithm Hash digest
SHA256 941ebe33809f9988212ec4c2171aa24e19c097f8fa557dcf0cdea177e9b0c779
MD5 afe458cad444a19c8f1fc6248eedf683
BLAKE2b-256 61894b29f923d70c088a030eb2c7b7634855fe4440142d05ca864b6d4f529c15

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