Comments (4)
@chacham2 ,
Please see the documentation for getParsha(). When it is not Shabbos, Parsha.NONE is returned, and the formatter formats this as an empty string. The same for formatRoshChodesh() that returns an empty string when it is not Rosh Chodesh. I know that some in the past have expected the parsha returned in middle of the week, but that is not how this API was designed. What output did you expect for formatting a Rosh Chodesh when it is in middle of the month? For additional info, please see documentation in the the source code.
Have a good Shabbos.
from zmanim.
And here i thought i looks at the documentation. Maybe i looked in the wrong area?
What output did you expect for formatting a Rosh Chodesh when it is in middle of the month?
The real answer is that i was just trying a couple to see what worked and what did not. So, i just tried a couple calls and saw they did not work. But from the name of the call, i would have expected the month's rosh chodesh, whenever it was.
I know that some in the past have expected the parsha returned in middle of the week, but that is not how this API was designed.
That is indeed what i would have expected. The names of the calls don't make it so clear what is being returned. I guess i can test what day of the week it is and add the days until Shabbos.
In any case i don't mean to complain, this is a wonderful library. Have a good Shabbos!
from zmanim.
And here i thought i looks at the documentation. Maybe i looked in the wrong area?
What output did you expect for formatting a Rosh Chodesh when it is in middle of the month?
The real answer is that i was just trying a couple to see what worked and what did not. So, i just tried a couple calls and saw they did not work. But from the name of the call, i would have expected the month's rosh chodesh, whenever it was.
I know that some in the past have expected the parsha returned in middle of the week, but that is not how this API was designed.
That is indeed what i would have expected. The names of the calls don't make it so clear what is being returned. I guess i can test what day of the week it is and add the days until Shabbos.
In any case i don't mean to complain, this is a wonderful library. Have a good Shabbos!
from zmanim.
No worries.
from zmanim.
Related Issues (20)
- API get multiple days ( or next event ) HOT 4
- Add CI with GitHub Actions to automatically run the unit tests HOT 1
- Duplicate or similar code HOT 1
- Potential NullPointerExceptions HOT 4
- Create jar file HOT 3
- isShabbosMevorchim should return false for the month of Tishrei
- Any plans on porting the lastest version to .NET? HOT 10
- Some possible typos in the documentation HOT 4
- Suggestion: Add Hebrew and English labels for zmanim
- Suggestion: Add a parameter to Zmanis methods to let the user choose which temporal hour to use.
- How do i add a day to JewishCalendar? HOT 6
- Wrong ( I think ) sof Zman kisush levanah due to how java clanendar works with dayligh savings time boundry HOT 5
- Enhancement request - would love to go back further to ~ 500 BC HOT 7
- License under Apache or MIT License? HOT 1
- Why is getParsha defined only on shabbos/saturday HOT 11
- Change README gradle import syntax HOT 5
- More `JewishCalendar` Tefila Rules / Special Days HOT 14
- Bain Hashmashos Spelled Hasmoshos
- isYomTov()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zmanim.