Comments (5)
@Sternbach-Software , This is a fair question and I will change it. The reason it uses StringBuffer is because the code dates back to 2004 before the Sept 2004 release of Java 5. At this point there is no reason not to change it.
from zmanim.
@Sternbach-Software,
While this request is trivial, I realized when looking at this class that there is no TimeZone attached to this. While the moment in time will be fine, a typical use-case will require a time zone. This requires a drop more of a change than just changing a StringBuffer to StringBuilder.
from zmanim.
Fixed in via 8a643bc.
Thanks @Sternbach-Software
from zmanim.
So java.util.Calendar
?
from zmanim.
Then again, what are the use cases? Maybe the most common use case is calculating a zman for a given time zone, wrapping it in a zman, and displaying it to the user. My implementation of Zman uses kotlinx.datetime.Instant which forces you to provide a timezone when you want to convert it to a LocalDateTime and when creating the Instant, but that would be the responsibility of the accessor of the Instant when they want to do that date math or conversion. Maybe it should be the same thing here? Provide them with the minimal necessary information that they couldn't easily get without rewriting the library, and let them use that to do what they need. Still not sure what use cases you intended this for. I use this to solve #217 .
from zmanim.
Related Issues (20)
- More `JewishCalendar` Tefila Rules / Special Days HOT 14
- Bain Hashmashos Spelled Hasmoshos
- isYomTov()
- add special Shabbasos
- check for machar_rosh_chodesh accounts for wday? HOT 1
- go-zmanim
- Yerushami Daf Yomi Trasliterated name error in order HOT 1
- Wrong formatter used on test output - LOW priority HOT 2
- In getDafYomiYerushalmi() [LastMischta, LastMesechtahMaxDaf + 1] returned for Daf 1 of Meschtas after Brachos HOT 2
- Spelling ? Kilayim כלאיים
- Flaw in logic? HOT 2
- Why Tfila vs. Tfilah?
- Spelling errors
- Identifying a zman?
- Add Mizmor Lesoda to TefilaRules HOT 10
- Cannot translate the parsha from the new API HOT 1
- Shushan Purim Katan is misspelled in Hebrew HOT 4
- VBA and VB6 port - vbzmanim HOT 2
- `NullPointerException` in `HebrewDateFormatter.formatDayOfWeek` due to uninitialized `weekFormat` HOT 1
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.