Jalali datetime binding for python
Project description
jdatetime
=========
jdatetime is [Jalali](http://en.wikipedia.org/wiki/Iranian_calendar) implementation of Python's datetime module
[![Build Status](https://travis-ci.org/slashmili/python-jalali.svg?branch=master)](https://travis-ci.org/slashmili/python-jalali)
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](http://docs.python.org/release/2.7.1/library/datetime.html)
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
```
=========
jdatetime is [Jalali](http://en.wikipedia.org/wiki/Iranian_calendar) implementation of Python's datetime module
[![Build Status](https://travis-ci.org/slashmili/python-jalali.svg?branch=master)](https://travis-ci.org/slashmili/python-jalali)
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](http://docs.python.org/release/2.7.1/library/datetime.html)
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
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jdatetime-1.6.tar.gz
(8.5 kB
view details)
File details
Details for the file jdatetime-1.6.tar.gz
.
File metadata
- Download URL: jdatetime-1.6.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96e97d502c764da59dbefd022d25ce4cfc090ec0108199c59b07132f1198ef1c |
|
MD5 | e34329631c78e59716f649cd33387ad1 |
|
BLAKE2b-256 | 71f3c50ef260f8c7d211a30874d23d6e2bf1c72ea3c11c5a2f229454ef42cfb1 |