Skip to main content

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)
[![PyPi] (https://img.shields.io/pypi/v/jdatetime.svg)](https://pypi-hypernode.com/pypi/jdatetime)
[![PyPi Downloads] (https://img.shields.io/pypi/dm/jdatetime.svg)](https://pypi-hypernode.com/pypi/jdatetime)

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


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.7.2.tar.gz (8.7 kB view details)

Uploaded Source

File details

Details for the file jdatetime-1.7.2.tar.gz.

File metadata

  • Download URL: jdatetime-1.7.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jdatetime-1.7.2.tar.gz
Algorithm Hash digest
SHA256 e0917bf489bec208f973b7fb67ae4d7bfa181c1f3aa64a0a64f0dd7578c0582a
MD5 756d53362ce66e98b909ac182b8644bb
BLAKE2b-256 894c1edb902b7fedc47f20ed8b0b96ba1b1438a05f9e668ba242e7135414bd6d

See more details on using hashes here.

Supported by

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