PyTimeKR
PyTimeKR은 PyTime 의 포크로 대한민국의 공휴일 등 을 추가하였습니다.
설치
pip install pytimekr
간단 사용법
>>>from pytimekr import pytimekr
>>>
>>>chuseok = pytimekr.chuseok() # 추석
>>>print chuseok
datetime.date(2015, 9, 27)
>>>
>>>pytimekr.red_days(chuseok) # 추석 연휴
[datetime.date(2015, 9, 26),
datetime.date(2015, 9, 27),
datetime.date(2015, 9, 28),
datetime.date(2015, 9, 29)]
>>>
>>>ly = pytimekr.lunar_newyear(1995) # 1995년도 설날
>>>print ly
datetime.date(1995, 1, 31)
다른 공휴일
>>>pytimekr.hangul() # 한글날
datetime.date(2015, 10, 9)
>>>
>>>pytimekr.children() # 어린이날
datetime.date(2015, 5, 5)
>>>
>>>pytimekr.independence() # 광복절
datetime.date(2015, 8, 15)
>>>
>>>pytimekr.memorial() # 현충일
datetime.date(2015, 6, 6)
>>>
>>>pytimekr.buddha() # 석가탄신일
datetime.date(2015, 5, 25)
>>>
>>>pytimekr.samiljeol() # 삼일절
datetime.date(2015, 3, 1)
>>>
>>>pytimekr.constitution() # 제헌절
datetime.datetime(2015, 7, 17)
>>>
>>>pytimekr.constitution() # 제헌절
datetime.datetime(2015, 7, 17)
License
MIT
Metadata
Release files for pytimekr 0.1.0
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 |
|---|---|---|---|---|
| pytimekr-0.1.0.tar.gz | 7.3 kB | Without provenance | Details for pytimekr-0.1.0.tar.gz |
Release files / pytimekr-0.1.0.tar.gz
| Download URL | pytimekr-0.1.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c83f981c3ad13173af404a05b0a8e2bf25a829c4376577f4fe5c0655045fd9d
|
|
BLAKE2b-256 checksum How to use checksums |
cc08b9181bf49a11652965c8c07a9945007b8e84263523f2af1064b6856c5294
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytimekr 0.1.0
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.