calculate age like `17 years and 90 months`.
Project description
`SaiGene` is a calc for age.
Requirements
------------
* Python 2.7 or later (not support 3.x)
Features
--------
* read below
from saigene import SaiGene
from datetime import date
sg = SaiGene()
born = date(1984, 1, 4)
res = sg.calculate(born)
* you also instantiate like below
sg = SaiGene(age=18, lang="kr")
res = sg.calculate(born)
print(res)
# => 17세와180개월
sg = SaiGene(age=18, lang="vi")
res = sg.calculate(born)
print(res)
# => 17 năm và 180 tháng
Setup
-----
::
$ pip install saigene
History
-------
0.0.4 (2015-1-5)
~~~~~~~~~~~~~~~~~~
* first release
0.0.1 (2015-1-5)
Requirements
------------
* Python 2.7 or later (not support 3.x)
Features
--------
* read below
from saigene import SaiGene
from datetime import date
sg = SaiGene()
born = date(1984, 1, 4)
res = sg.calculate(born)
* you also instantiate like below
sg = SaiGene(age=18, lang="kr")
res = sg.calculate(born)
print(res)
# => 17세와180개월
sg = SaiGene(age=18, lang="vi")
res = sg.calculate(born)
print(res)
# => 17 năm và 180 tháng
Setup
-----
::
$ pip install saigene
History
-------
0.0.4 (2015-1-5)
~~~~~~~~~~~~~~~~~~
* first release
0.0.1 (2015-1-5)
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
SaiGene-0.0.4.tar.gz
(3.3 kB
view hashes)