jalaali / jalaali-js

JavaScript functions for converting Jalaali and Gregorian calendar systems to each other
MIT License
310 stars 36 forks source link

Can I get the number of days in a Jalaali month? #25

Closed qodesmith closed 3 years ago

qodesmith commented 3 years ago

I can convert a date into a Jalaali object:

// Today happens to be June 8th, 2021
const jl = jalaali.toJalaali(new Date()) // {jy: 1400, jm: 3, jd: 18}

So given the Jalaali year (1400) and month (3), is there a way to tell how many days are in that month?

qodesmith commented 3 years ago

O man, I just saw there's a jalaaliMonthLength method. Thank you!