Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Convert datetime to Japanese era

Project description

|pypi| |pypi| |GitHub license| |travis| |coveralls|

erajp: Convert datetime to Japanese era


- Python 2.7+
- Python 3.2+


Install erajp via PyPI:


pip install erajp

How to use

.. code:: python

>>> strjpftime()
'H27.08.05' # now
>>> strjpftime(datetime.datetime(1989, 1, 8))
>>> strjpftime(datetime.datetime(1989, 1, 8), u"%O%E年")

New available date format

- %o : alpabet era
- %O : Chinese charactor era
- %E : era year

Main Project Website.


MIT License

.. |pypi| image::
.. |pypi| image::
.. |GitHub license| image::
.. |travis| image::
.. |coveralls| image::

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for erajp, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size erajp-0.0.4.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page