hebcal-js
hebcal-js copied to clipboard
change string functions
- adding week day names dictionary(hebrew and english).
- adding 3 string functions , spread them from toString function.
- getDayName - getting the hebrew day
- getMonthName - getting the hebrew month
- getYearName - getting the hebrew year.
- adding function to get the name of week day.
- adding function dateFormat - with date formatter u can get the date with any format you need. usage : let hebCalObj = new Hebcal(); let hebrewDateObj = (hebCalObj).find(new Date)[0]; if (hebrewDateObj){ weekDay = 'יום ' + hebrewDateObj.getWeekDayName(lang); hebrewDate = hebrewDateObj.dateFormat('D M',lang); }
I like this idea. Want to add a simple test file to the test folder? See my PR for an example of what I mean: #71
I like this idea. I left a couple comments with issues. (And sorry for taking so long to respond.)