Easy japanese era tool
Project description
Easy japanese era tool
Powered by Yamato Nagata
>>> from datetime import date
>>> from japanera import Japanera, EraDate
>>> janera = Japanera()
>>> c_era = janera.era(date.today())
>>> c_era._in(date(2019, 4, 16))
True
>>> "Current Japanese Era is <{}>: <{}>".format(c_era.kanji, c_era.english)
Current Japanese Era is <平成>: <Heisei>
>>> "Current Date is <{}>".format(c_era.strftime(date(2019, 4, 16), "%-E%-O年%m月%d日"))
Current Date is <平成31年04月16日>
>>> # Or you can do same thing in this way
>>> "Current Date is <{}>".format(EraDate(2019, 4, 16).strftime("%-E%-O年%m月%d日"))
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-1.1.0.tar.gz
(19.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
Japanera-1.1.0-py3-none-any.whl
(17.1 kB
view details)
File details
Details for the file Japanera-1.1.0.tar.gz.
File metadata
- Download URL: Japanera-1.1.0.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87d2ea2deaec78ec0b938e0e0f0cdef1f434a2f7a33758069d433d86313c3a16
|
|
| MD5 |
78afde91efdf41dade024830609a4af5
|
|
| BLAKE2b-256 |
9c8f2bcbfccba2ad2ffe360eb544a768336be569920ab70661291f5993213675
|
File details
Details for the file Japanera-1.1.0-py3-none-any.whl.
File metadata
- Download URL: Japanera-1.1.0-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c86100408317eab19dfec2f51c978d2440f8c3a8de53972c2e2dd128382d1694
|
|
| MD5 |
7e402948e7fd931a5249af778f945c96
|
|
| BLAKE2b-256 |
eb9167b204861426003e9d97ff80a68a6d7c4699ac98f6d28aefc347dbebfc34
|