hebcal / hebcal-go

A perpetual Jewish Calendar (golang)
GNU General Public License v2.0
14 stars 3 forks source link

סוף זמן אכילה וביעור חמץ #13

Open MaxBGreenberg opened 8 months ago

MaxBGreenberg commented 8 months ago

I think a useful feature to add would be for an option to print sof zman achilas chametz and sof zman biur chametz on erev pesach. I was initially thinking of adding that to the zmanim list contingent on it the condition that the day is erev pesach is met. but then I realized that it may be better to leave that as just the zmanim that apply every day. Perhaps instead it could be added to the -c option, being printed alongside candle lighting. Do people think this could be useful? The zman for achilas chametz is the same as sof zman tefilla. the zman for sof zman biur is one halachik hour later.

mjradwin commented 8 months ago

Good suggestion! Given that this is only two days per year, I think it fits better with the -c option. This is what we did for fast start and end times... rather than add a new command-line flag, we just emit the start/end times for relevant minor fasts (Ta'anit Esther, Ta'anit Bechorot, Tzom Tammuz, etc) when the user wants candle-lighting times.

MaxBGreenberg commented 8 months ago

Ok. I will take some time to study the code base to better understand how this all works and iy"h prepare a pull request

mjradwin commented 8 months ago

The code probably belongs in appendHolidayAndRelated() in hebcal.go. I think the function needed would be similar to makeFastStartEnd() in candles.go