Skip to main content

dateconverter package for Gregorian, Hijri and Jalali

Project description

nona date converter

Name

Nona Date Converter

Description

A library to convert gregorian, hijri and jalali calenders to each other.

Installation

pip3 install nonadateconverter pip3 install git+https://github.com/naweed1992/nonadateconverter.git

Usage

Methods and Functions:

  1. nonadateconverter.hijri(Year, Month, day).hijri_to_gregorian() Description: This function converts Hijri date to Gregorian date ! Example: nonadateconverter.hijri(1444, 08, 07).hijri_to_gregorian() out: (2023,02 ,28 ) #Gregorian,output type: tuple!

  1. nonadateconverter.gregorian(Year, Month, day).gregorian_to_hijri() Description: This function converts Gregorian date to Hijri date ! Example: nonadateconverter.gregorian(2023,02 ,28 ).gregorian_to_hijri() out: (1444, 08 , 07 ) #Hijri,output type: tuple!

  1. nonadateconverter.jalali(Year, Month, day).jalali_to_hijri() Description: This function converts Jalali date to Hijri date ! Example: nonadateconverter.jalali(1401, 12, 09).jalali_to_hijri() out: (1444, 08, 07) #Hijri,output type: tuple!

  1. nonadateconverter.hijri(Year, Month, day).hijri_to_jalali() Description: This function converts Hijri date to Jalali date ! Example: nonadateconverter.hijri(1444, 08, 07).hijri_to_jalali() out: (1401, 12, 09 ) #Jalali,output type: tuple!

  1. nonadateconverter.gregorian(Year, Month, day).gregorian_to_jalali() Description: This function converts Gregorian date to Jalali date ! Example: nonadateconverter.gregorian(2023-02-28).gregorian_to_jalali() out: (1401,12,09) #Jalali,output type: tuple!

  1. nonadateconverter.jalali(Year, Month, day).jalali_to_gregorian() Description: This function converts Jalali date to Gregorian date ! Example: nonadateconverter.jalali(1401,12,09).jalali_to_gregorian() out: (2023-02-28) #Gregorian,output type: tuple!

  1. nonadateconverter.gregorian.now() Description: This function shows current time in gregorian! Example: nonadateconverter.gregorian.now() out: (2023,02 ,28 ) #Gregorian,output type: tuple!

  1. nonadateconverter.jalali.now() Description: This function shows current time in jalali! Example: nonadateconverter.jalali.now() out: (1401,12 ,12 ) #Jalali,output type: tuple!

  1. nonadateconverter.hijri.now() Description: This function shows current time in hijri! Example: nonadateconverter.hijri.now() out: (1444,08 ,10 ) #hijri,output type: tuple!

  1. nonadateconverter.gregorian(year, month, day).weekday() Description: This function shows the week day Example: nonadateconverter.gregorian(2023, 02 , 28).weekday() out: Tuesday #output type: String

  1. nonadateconverter.jalali(year, month, day).weekday() Description: This function shows the week day Example: nonadateconverter.jalali(1401, 12 , 09).weekday() out: Tuesday #output type: String

  1. nonadateconverter.hijri(year, month, day).weekday() Description: This function shows the week day Example: nonadateconverter.hijri(1444, 12 , 09).weekday() out: Tuesday #output type: String

  1. nonadateconverter.gregorian(year, month, day).elapsedtime() Description: This function shows elapsed time from input date until now! Example: nonadateconverter.gregorian(2022, 02, 05).elapsedtime() out: (1, 7, 7) #(year, month, day) ,output type: tuple!

  1. nonadateconverter.jalali(year, month, day).elapsedtime() Description: This function shows elapsed time from input date until now Example: nonadateconverter.jalali(1400, 02, 05).elapsedtime() out: (1, 7, 7) #(year, month, day) ,output type: tuple!

  1. nonadateconverter.hijri(year, month, day).elapsedtime() Description: This function shows elapsed time from input date until now Example: nonadateconverter.hijri(1444, 02, 05).elapsedtime() out: (1, 7, 7) #(year, month, day) ,output type: tuple!

Support

email me on navid.nourazar@gmail.com

Authors and acknowledgment

Thanks to Filoger which had impact on developing the project.

License

open source

Project status

Done

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

nonadateconverter-0.0.4.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file nonadateconverter-0.0.4.tar.gz.

File metadata

  • Download URL: nonadateconverter-0.0.4.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.0

File hashes

Hashes for nonadateconverter-0.0.4.tar.gz
Algorithm Hash digest
SHA256 460cc3af74de2cee1f93bca934b100eb140a510b3c7394d547ba14704977eb71
MD5 35cd09107e076649a0607491f2615c52
BLAKE2b-256 c0c69cef11ba57d955c3b077d7e0c4543d39b243283c0a21a9d8cd17f3236b4e

See more details on using hashes here.

Supported by

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