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
----------
::
>>> strjpftime()
'H27.08.05' # now
>>> strjpftime(datetime.datetime(1989, 1, 8))
'H1.01.08'
>>> strjpftime(datetime.datetime(1989, 1, 8), u"%O%E年")
'平成元年'
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
erajp: Convert datetime to Japanese era
=======================================
Requirements
------------
- Python 2.7+
Installation
------------
Install erajp via PyPI:
::
pip install erajp
How to use
----------
::
>>> strjpftime()
'H27.08.05' # now
>>> strjpftime(datetime.datetime(1989, 1, 8))
'H1.01.08'
>>> strjpftime(datetime.datetime(1989, 1, 8), u"%O%E年")
'平成元年'
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.2.tar.gz
(1.8 kB
view details)
File details
Details for the file erajp-0.0.2.tar.gz
.
File metadata
- Download URL: erajp-0.0.2.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dafe27e14487a112d62d6a66a8b2d19f52243c6bb9026838472de553df5937c7 |
|
MD5 | 25d3b9d0a3dbe5d40138b74cfa187857 |
|
BLAKE2b-256 | ca4fcf7a81a33346ed183601dfeb2ab0edb708ca7d6cb13c4ab9e9e128ac9182 |