Transdate provides a lunardate class, which interface is compatible to a built-in datetime.date but supports additional methods for the Asian lunisolar calendar.
Interface summary:
lunardate.fromsolardate(date) class method and tosolardate() method converts a solar date to a lunar date and vice versa.
lunaryear, lunarmonth, lunarday properties are direct analogues to year, month, day.
lunerleap property returns True when the month is intercalary. For example, April 2012 was followed by intercalary April 2012, and then May 2012. Therefore this additional month will be marked via lunarleap property.
strftime method is extended to support %LY/%LC/%Ly/%Lm/%Ld/%Le/%Lj sequences, which are analogous to %Y/%C/%y/%m/%d/%e/%j sequences respectively.
The dataset is derived from Korea Astronomy and Space Science Institute, and covers from January 1881 to December 2050 (in the lunar date). Warning: Various Asian countries use slightly different rules to determine intercalary months, however, so these rules may diverge from each other. The first known date affected by this divergence is July 2033, and thereafter only the Korean rule applies.
Metadata
Release files for transdate 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| transdate-1.1.1.tar.gz | 17.5 kB | Without provenance | Details for transdate-1.1.1.tar.gz |
Release files / transdate-1.1.1.tar.gz
| Download URL | transdate-1.1.1.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47549cd5d35a60551085e955a336faa956c43193d59c691c9a6d421b103f7c05
|
|
BLAKE2b-256 checksum How to use checksums |
ef1bb765bb9fa4420ae23c262cf0599859383b01cf6bf57f522d5af520833013
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for transdate 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.