Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Convert datetime to Japanese era

Project description

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

erajp: Convert datetime to Japanese era
=======================================

Requirements
------------

- Python 2.7+
- Python 3.2+

Installation
------------

Install erajp via PyPI:

::

pip install erajp

How to use
----------

.. code:: python

>>> strjpftime()
'H27.08.05' # now
>>> strjpftime(datetime.datetime(1989, 1, 8))
'H1.01.08'
>>> 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.
---------------------

https://github.com/recruit-mtl/erajp

License
-------

MIT License

.. |pypi| image:: https://img.shields.io/pypi/dm/erajp.svg
:target: https://pypi.python.org/pypi/erajp
.. |pypi| image:: https://img.shields.io/pypi/v/erajp.svg
:target: https://pypi.python.org/pypi/erajp
.. |GitHub license| image:: https://img.shields.io/github/license/recruit-mtl/erajp.svg
:target: https://github.com/recruit-mtl/erajp
.. |travis| image:: https://img.shields.io/travis/recruit-mtl/erajp.svg
:target: https://travis-ci.org/recruit-mtl/erajp
.. |coveralls| image:: https://img.shields.io/coveralls/recruit-mtl/erajp.svg
:target: https://coveralls.io/github/recruit-mtl/erajp

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

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page