Skip to main content

Convert datetime to Japanese era

Project description

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

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

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

- Python 2.7+

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

Install erajp via PyPI:

::

pip install erajp

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

.. code:: ptyhon

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

Source Distribution

erajp-0.0.3.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file erajp-0.0.3.tar.gz.

File metadata

  • Download URL: erajp-0.0.3.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for erajp-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3025bdfca0179f6f0754d3c780e036c65e330687c764cdfe8012f27ca7c95135
MD5 bc0c5a4d461251dda3b028aa171d3cc9
BLAKE2b-256 5e39a24493f63be452fb1e4b2af9dba54620d2f209ee6ce7ce192d3b1f741ba8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page