All Projects → mjnaderi → Jalali.py

mjnaderi / Jalali.py

Persian and Gregorian Date Converter for Python 2 and Python 3

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Jalali.py

Dazv
canvas 可视化图表
Stars: ✭ 70 (-14.63%)
Mutual labels:  calendar
Seonbi
SmartyPants for Korean language
Stars: ✭ 76 (-7.32%)
Mutual labels:  converter
Vue Draggablecal
Not your ordinary datepicker. A Vuejs draggable date selector with a fresh responsive design, mobile ready and 0 dependencies, 17kb gzipped
Stars: ✭ 79 (-3.66%)
Mutual labels:  calendar
Calendarview
Calendar View Library
Stars: ✭ 71 (-13.41%)
Mutual labels:  calendar
Simple calendar
A wonderfully simple calendar gem for Rails
Stars: ✭ 1,187 (+1347.56%)
Mutual labels:  calendar
Kirby Calendar Plugin
A plugin for the Kirby CMS to easily implement an event calendar.
Stars: ✭ 76 (-7.32%)
Mutual labels:  calendar
Gluon2pytorch
Gluon to PyTorch deep neural network model converter
Stars: ✭ 70 (-14.63%)
Mutual labels:  converter
React Datetimerange Picker
A datetime range picker for your React app.
Stars: ✭ 82 (+0%)
Mutual labels:  calendar
Youtube Channel Name Converter
A Youtube Channel Name to ID Converter
Stars: ✭ 75 (-8.54%)
Mutual labels:  converter
Word To Markdown
A ruby gem to liberate content from Microsoft Word documents
Stars: ✭ 1,216 (+1382.93%)
Mutual labels:  converter
Calendarview2
Calendar view for Android. Pretty.
Stars: ✭ 72 (-12.2%)
Mutual labels:  calendar
Calendar
Android日历 仿小米 华为 滴答清单 365日历(农历),周视图 月视图 平滑滚动 节假日 五六行周切换 week or month calendar
Stars: ✭ 1,183 (+1342.68%)
Mutual labels:  calendar
Dadadash
Office suite with file browser, document editor, spreadsheet editor, calendar and data tables with CRUDX API's ready to deploy
Stars: ✭ 78 (-4.88%)
Mutual labels:  calendar
Dategrid
A customizable swiftui calendar
Stars: ✭ 71 (-13.41%)
Mutual labels:  calendar
Calendarsyncplus
This utility synchronizes Calendar entries between different calendar providers (Apps like Outlook,Services EWS/Google/Live).
Stars: ✭ 80 (-2.44%)
Mutual labels:  calendar
Musicdownloader
Material design YouTube mp3/mp4 downloader
Stars: ✭ 70 (-14.63%)
Mutual labels:  converter
Calendar Heatmap
Calendar heatmap with matplotlib and random data
Stars: ✭ 76 (-7.32%)
Mutual labels:  calendar
Perun
A command-line validation tool for AWS Cloud Formation that allows to conquer the cloud faster!
Stars: ✭ 82 (+0%)
Mutual labels:  converter
Kotlin Agendacalendarview
Android calendar library provides easy to use widget with events
Stars: ✭ 81 (-1.22%)
Mutual labels:  calendar
Currencyconverter
Utilities for doing currency conversion with the Money library
Stars: ✭ 78 (-4.88%)
Mutual labels:  converter

Jalali.py

Jalali.py is a simple Python code for converting between Persian date and Gregorian date. It is a port of http://jdf.scr.ir/ (PHP).

Sample Usage

>>> import jalali

>>> jalali.Persian('1393-1-11').gregorian_string()
'2014-3-31'
>>> jalali.Persian(1393, 1, 11).gregorian_datetime()
datetime.date(2014, 3, 31)
>>> jalali.Persian('1393/1/11').gregorian_string("{}/{}/{}")
'2014/3/31'
>>> jalali.Persian((1393, 1, 11)).gregorian_tuple()
(2014, 3, 31)

>>> jalali.Gregorian('2014-3-31').persian_string()
'1393-1-11'
>>> jalali.Gregorian('2014,03,31').persian_tuple()
(1393, 1, 11)
>>> jalali.Gregorian(2014, 3, 31).persian_string("{0}")
'1393'

Original License

As mentioned in http://jdf.scr.ir/, the original code is free and open source, and you are not allowed to sell it. You can read more in http://jdf.scr.ir/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].