tarikh
v1.0.1
Published
Jalali, Hijri Shamsi Date
Downloads
4
Maintainers
Readme
tarikh
کتابخانهی کار با تاریخهای هـ.شمسی، هـ.قمری، میلادی
منبع اصلی: https://jdf.scr.ir/
نسخهی اوّلیه: امکان تغییرات وسیع در نسخههای آینده
توابع در دسترس (موقّت، احتمال تغییر نام در نسخههای بعدی):
miladi_to_shamsi: (y, m, d) => [yOut, mOut, dOut]
shamsi_to_miladi: (y, m, d) => [yOut, mOut, dOut]
miladi_to_ghamari: (y, m, d) => [yOut, mOut, dOut]
ghamari_to_miladi: (y, m, d) => [yOut, mOut, dOut]
shamsi_to_ghamari: (y, m, d) => [yOut, mOut, dOut]
ghamari_to_shamsi: (y, m, d) => [yOut, mOut, dOut]
//
shamsi_to_julianDate: (y, m, d) => julianDate
ghamari_to_julianDate: (y, m, d) => julianDate
miladi_to_julianDate: (y, m, d) => julianDate
julianDate_to_shamsi: (julianDate) => [y, m, d]
julianDate_to_ghamari: (julianDate) => [y, m, d]
julianDate_to_miladi: (julianDate) => [y, m, d]
julianDate_to_all: (julianDate) => {shamsi:[y,m,d], ghamari:[y,m,d], miladi:[y,m,d]}
//
shamsi_to_timeStamp: (y, m, d) => timeStamp
ghamari_to_timeStamp: (y, m, d) => timeStamp
miladi_to_timeStamp: (y, m, d) => timeStamp
timeStamp_to_shamsi: (timeStamp) => [y, m, d]
timeStamp_to_ghamari: (timeStamp) => [y, m, d]
timeStamp_to_miladi: (timeStamp) => [y, m, d]
timeStamp_to_all: (timeStamp) => {shamsi:[y,m,d], ghamari:[y,m,d], miladi:[y,m,d]}
//
timeStamp_to_julianDateDate: (timeStamp, [H,M,S]=null) => julianDate
julianDate_to_timeStamptamp: (julianDate, [H,M,S]=null) => timeStamp
//
kabiseh: (shamsiYear) => true|false
mName: () => {shamsi:[...], ghamari:[...], miladiEn:[...], miladi:[...]}
roozeHaftehName: () => [...]
//
toFaNum: (strEnNum) => "strFaNum"
toEnNum:(strFaNum) => "strEnNum"
to2Digit: (num1or2Digit) => num2Digit