jalaali / jalaali-js

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

Support timestamp #7

Closed j209 closed 5 years ago

j209 commented 7 years ago

Hi please implement timestamp date format conversion to jalali and jalali to timestamp

behrang commented 7 years ago

Hello,

What do you mean by timestamp? An example would help.

alitaheri commented 7 years ago

You can always convert to Gregorian, create a Date object from it and convert to number. it will give you the timestamp you need.

See this for more info

behnammodi commented 5 years ago

you can use jalaali.toJalaali(new Date(timestamp))