Skip to content

akmohtashami/python-jalali

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jdatetime

jdatetime is Jalali implementation of Python's datetime module

INSTALL

Install it with easy_install

easy_install jdatetime

OR install it from source

python setup.py install

Documents

This module exactly follows Python Standard datetime module's methods

Also these methods are addedd to jdatetime.date and jdatetime.datetime :

 |  fromgregorian(**kw)
 |      Convert gregorian to jalali and return jdatetime.date
 |      jdatetime.date.fromgregorian(day=X,month=X,year=X)
 |      jdatetime.date.fromgregorian(date=datetime.date)
 |      jdatetime.date.fromgregorian(datetime=datetime.datetime)
 |  togregorian(self)
 |      Convert current jalali date to gregorian and return datetime.date
 |  isleap(self)
 |      check if year is leap year
 |      algortim is based on http://en.wikipedia.org/wiki/Leap_year

About

Jalali calendar binding for Python based on Python's datetime module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%