Easy japanese era tool
Project description
Easy japanese era tool
Powered by Yamato Nagata
>>> from datetime import date
>>> from japanera import EraDate
>>> today = EraDate.from_date(date.today())
>>> date(2020, 4, 16) in today.era
True
>>> "Current Japanese Era is <{}>: <{}>".format(today.era.kanji, today.era.english)
Current Japanese Era is <令和>: <Reiwa>
>>> "Current Date is <{}>".format(today.strftime("%-K%-y年%m月%d日"))
Current Date is <令和05年03月07日>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Japanera-2.1.2.tar.gz
(23.9 kB
view hashes)
Built Distribution
Japanera-2.1.2-py3-none-any.whl
(18.0 kB
view hashes)