jalaali / jalaali-js

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

Add jalaaliToTimestamp function #31

Closed sajadspeed closed 3 years ago

sajadspeed commented 3 years ago

This function is simple but is useful

behrang commented 3 years ago

Hi,

Thanks for the contribution, however, I'm against such utility helpers. The function jalaaliToDateObject returns a Date object, and prefixing it with a + returns the timestamp, so it is shorter, and doesn't need another method to remember to use.