yparitcher / libzmanim Goto Github PK
View Code? Open in Web Editor NEWC library for zmanim & hebrew calendar
License: Other
C library for zmanim & hebrew calendar
License: Other
i was looking for a the that comparable to isErevRoshChodesh in kosherZmanim, but i can't seem to find one, to me it looks like it would be like this:
bool isMacharRoshChodesh(const hdate hebrewDate)
{
return hebrewDate.day == 29 && hebrewDate.month != 6;
}
I am a code-noob on Windows (I know linux a bit better)
I followed the instructions for installing on Windows: "run window.bat in a VisualStudio command prompt to build libzmanim.dll
and test.exe
. This uses the OpenBSD stpncpy."
I did it as follows:
"How do I run a .bat file in Visual Studio?
Right click the batch file in the Solution Explorer.
Select “Open With…” from the context menu.
Click “Add…”
In the “Program name” textbox, enter powershell.exe.
In the “Friendly name” textbox enter “PowerShell”
Select “Set As Default”
Click OK."
Okay, so I ran it in powershell. What's the next step?
There were no error messages, but I don't see "test.exe" anywhere.
How do I run the program?
not sure what's this paramter is used and how it effects the times?
Is it possible to convert this to an Arduino library?
I'm looking to make a few projects which can greatly benefit from a "issur melacha" Boolean.
i've noticed you're using offset just before you convert it to time_t and then hand it over to localtime
however if i'm using tz environment variable to set the timezone and dst rules
https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html
like for example:
setenv("TZ", "IST-2IDT,M3.4.4/26,M10.5.0", 1);
tzset();
do i still need to set offset?
if not? might be good to add it to the docs..
it would have been nice to have an enum casue i'm not sure what does 1 2 and 3 mean in this case
i've started displaying the times part in the esp project
any reason why i can't use
setenv("TZ", "IST-2IDT,M3.4.4/26,M10.5.0", 1);
tzset();
to make the proper time zone match the one i'll putting on the timezone field?
code also does not seem right for
eretz yisroel when shabbos is 1st day of pesach
in 2022 8th day is Aril 23
should dbe 1st perek in Eretz yistoel
./test 2022 4 23 40.852011 -73.936119 -4.0 1
elazar@elazar-Lenovo-IdeaPad-130S-11IGM ~/zmanim/libzmanim/test $ ./test 2022 4 23 40.852011
-73.936119 -4.0 1
כ״ב ניסן תשפ״ב
ותן ברכה
פרשת אחרי מות
ספירת העומר: ז
alos: 04:30 AM EDT
misheyakir: 05:11 AM EDT
sunrise: 06:04 AM EDT
shma: 09:27 AM EDT
tefila: 10:36 AM EDT
chatzos: 12:54 PM EDT
mincha gedola: 01:28 PM EDT
mincha ketana: 04:55 PM EDT
plag hamincha: 06:21 PM EDT
sunset: 07:43 PM EDT
shabbos ends: 08:27 PM EDT
פרשת אחרי מות
שביעי עם פירש״י
תהלים
ק״ו - ק״ז
תניא
וגם כי אין לו
־120־ כנ״ל פ״כ.
רמב״ם
הלכות סנהדרין
פרק רביעי
elazar@elazar-Lenovo-IdeaPad-130S-11IGM
the reason i'm asking is that i recently discovered that arduino c implemenation actually uses the year 2000 and not 1970 as the start date inorder to prolong what is known as the y2k38 https://en.wikipedia.org/wiki/Year_2038_problem
while esp32 c implemenation still uses 1970 as the start year.
Its my understanding that we dont say Perkie Avos when 8 av is on Shabbos
your Avos code seems to assign a perek to that day.
a version of
Is this a chabad difference in minhagim ?
I just happened to notice because I was thinking of using your algorithem in an app I have for the java version of Kosher Java Zmanim
and that does not provied avos
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.