Skip to main content

Easy japanese era tool

Project description

Easy japanese era tool

Powered by Yamato Nagata

GitHub ReadTheDocs

>>> 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


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)

Uploaded Source

Built Distribution

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

Japanera-1.1.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

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

Hashes for Japanera-1.1.0.tar.gz
Algorithm Hash digest
SHA256 87d2ea2deaec78ec0b938e0e0f0cdef1f434a2f7a33758069d433d86313c3a16
MD5 78afde91efdf41dade024830609a4af5
BLAKE2b-256 9c8f2bcbfccba2ad2ffe360eb544a768336be569920ab70661291f5993213675

See more details on using hashes here.

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

Hashes for Japanera-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c86100408317eab19dfec2f51c978d2440f8c3a8de53972c2e2dd128382d1694
MD5 7e402948e7fd931a5249af778f945c96
BLAKE2b-256 eb9167b204861426003e9d97ff80a68a6d7c4699ac98f6d28aefc347dbebfc34

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