René's URL Explorer Experiment


Title: Identifying a zman? · Issue #217 · KosherJava/zmanim · GitHub

Open Graph Title: Identifying a zman? · Issue #217 · KosherJava/zmanim

X Title: Identifying a zman? · Issue #217 · KosherJava/zmanim

Description: I would like some input on the most ergonomic API surface for identifying a given zman. I am developing KosherKotlin in tandem with BeautifulZmanim, and the need came up to indicate a user-readable description of each zman, and to filter...

Open Graph Description: I would like some input on the most ergonomic API surface for identifying a given zman. I am developing KosherKotlin in tandem with BeautifulZmanim, and the need came up to indicate a user-readable...

X Description: I would like some input on the most ergonomic API surface for identifying a given zman. I am developing KosherKotlin in tandem with BeautifulZmanim, and the need came up to indicate a user-readable...

Opengraph URL: https://github.com/KosherJava/zmanim/issues/217

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Identifying a zman?","articleBody":"I would like some input on the most ergonomic API surface for identifying a given zman.\n\nI am developing [KosherKotlin](https://github.com/Sternbach-Software/KosherKotlin) in tandem with [BeautifulZmanim](https://github.com/Sternbach-Software/BeautifulZmanim), and the need came up to indicate a user-readable description of each zman, and to filter/group together similar zmanim (e.g. all opinions for a given zman, all zmanim for a given opinion, etc.).\n\nRight now, the function name and javadoc are the only info provided - which aren’t easily manipulated at runtime (not to mention the slight inconsistency in function naming which would make that even harder (e.g. alos60 vs. **minchaGedola30**~~Minutes~~)).\n\nI assume that this is something that most user-facing apps had to do, which would imply that it is the responsibility of the library (instead of everyone making their own library on top of the library).\n\nIdeally, the zman should also have some strongly-typed classification of how it was calculated (e.g. `if(zman.opinion instanceof ZmanOpinion.FixedMinutes) print(zman.opinion.minutes)`). This could be useful for translating the description into other languages (at the discretion of the library client), more in-depth user-facing explanations (ditto), grouping or filtering zmanim by their opinion/how they were calculated (not just what zman type they represent, such as latest shema), some simple data science/number-crunching, etc.\n\nI have already wrapped all public APIs in a Zman object (defined below) with a `ZmanType`. I am wondering if this should be translated to Java and ported upstream?\n\nMoshe Waisberg (author of Halachic Prayer Times Android) came up with 4 classifications for describing a zman to the user:\n-  “Day is $fixedMinutes minutes before sunrise / after sunset”\n-  “Day is $halachicMinutes minutes zmaniyos before sunrise / after sunset”\n-  “Day is $degrees˚ below sunrise / sunset”\n-  “According to $authority”\nIt Seems like there is 1 more:\n-  Widely accepted or only opinion\n\nSo far, these use-cases lead me to the following abstraction:\n-  Every zman is one of two types:\n  -  ValueBased: a zman that does not occur at a moment in time, but rather holds a duration/length of time (e.g. sha’ah zmanis)\n  -  DateBased: a zman that has a `momentOfOccurence`.\n    -  I (re)discovered after I came up with the two types that there is already a Zman.java object with 4 properties: \n label: string\n duration: long\n zman: Date\n description: string, \n-  Every zman has a ZmanOpinion, one of (as in Moshe Waisberg’s model): \n  -  FixedMinutes\n  - ZmaniyosMinutes\n  - Degrees\n  - Authority\n  - Unanimous\n-  Every zman has a ZmanType, (a user-friendly english and hebrew name is included here, but must be refactored into a localization mechanism). One of:\n- SHAA_ZMANIS(“Halachic hour”, “שעה זמנית“),\n     CHATZOS_HALAYLAH(“Halachic midnight”, “חצות הלילה“),\n     MISHMAR(“Watch”, “משמר“), //synonymous with אשמורת\n     ALOS(“Dawn”, “עלות השחר“),\n     MISHEYAKIR(“Earliest Tallis and Teffillin (Misheyakir)“, ” (משיכיר) טלית ותפילין הכי מוקדם“), //pardon the modern Hebrew הכי vs. ביותר\n     HANAITZ(“Sunrise”, “הנץ החמה“), //not NAITZ because the ה in Hanaitz is not a ה הידיעה (“the”), it is part of the participle (comparable to “הנצת“)\n     CHATZOS_HAYOM(“Halachic midday”, “חצות היום“),\n     MINCHA_GEDOLAH(“Greater Mincha”, “מנחה גדולה“), //any better translation? Just transliterate?\n     MINCHA_KETANAH(“Lesser Mincha”, “מנחה קטנה“), //any better translation? Just transliterate?\n     PLAG_HAMINCHA(“Plag Hamincha”, “פלג המנחה“), //should this be translated or transliterated?\n     SHKIAH(“Sunset”, “שקיעה“),\n     BAIN_HASHMASHOS(“Twilight”, “בין השמשות“),\n     TZAIS(“Nightfall”, “צאת הכוכבים“),\n     MOLAD(“New moon”, “מולד“), //accurate translation?\n \n     //Related to rituals:\n     SAMUCH_LEMINCHA_KETANA(“Close to Mincha Ketana”, “סמוך למנחה קטנה“), //see note on MINCHA_KETANAH\n     SOF_ZMAN_KRIAS_SHEMA(“Latest time to say Shema”, “סוף זמן קריאת שמע“),\n     SOF_ZMAN_TEFILLAH(“Latest time to daven Shacharis”, “סוף זמן תפילה“),\n     SOF_ZMAN_ACHILAS_CHAMETZ(“Latest time to eat Chametz”, “סוף זמן אכילת חמץ“),\n     SOF_ZMAN_BIUR_CHAMETZ(“Latest time to burn Chametz”, “סוף זמן ביעור חמץ“),\n     EARLIEST_MINCHA(“Earliest Mincha”, “מנחה הכי מוקדם“),\n     EARLIEST_KIDDUSH_LEVANA(“Earliest time to sanctify the moon”, “תחילת זמן קידוש לבנה“),\n     SOF_ZMAN_KIDDUSH_LEVANA(“Latest time to sanctify the moon”, “סוף זמן קידוש לבנה“),\n     CANDLE_LIGHTING(“Candle lighting”, “הדלקת נרות“)\n\nThe two edge-cases I saw in Moshe Waisberg’s classification and the possible solutions I see:\n-  what about when a zman has multiple originating authorities, or is known or held by several well-known authorities?\n  -  Put the first author to formulate the calculation.\n  - Put all authors\n  - Put the most well known author(s)\n - Put the most authoritative (e.g. I think R’ Moshe Feinstein is more authoritative for our generation than the Aruch Hashulchan)\n - Put the first + most well known, in case it is known by an author other than the first one (e.g “Komarno” zmanim were sometimes from much older sources)\n-  or it is according to one authority’s understanding of another authority’s opinion? (e.g. , Rabeinu Tam as 72 minutes, Rabeinu Tam  as 16.1 degrees, etc., or more complicated: R’Moshe’s understanding of the Magen Avraham as calculated using 18˚ to fixed local chatzos, 16.1˚,  etc.)\n-  or it does not fit into the neat boxes  defined by ZmanOpinion (e.g. sofZmanShmaAlos16Point1ToSunset)?\n  -  A general description\n  -  “Day starts at $startZman.description and ends at $endZman.description”\n  -  A map of ZmanType to ZmanOpinion (possible split into start and end - or before or after?)\n    -  e.g. plagAlosToSunset: \n      -  day starts at alos16Point1Degrees\n      - day ends at sunset, \n      -  sha’ah zmanis is calculated based on the opinion that the day is calculated from a alos16Point1Degrees of 16.1 degrees before sunrise to seaLevelSunset.\n     - bainHashmashosRT13Point5MinutesBefore7Point083Degrees\n       -  Rabeinu tam\n       -  FixedMinutes(13.5)\n       -  Before: 7.083 degrees\n\nWhat about when there is only one way to calculate a zman? What should the ZmanOpinion type be?\nAnd should authority names be in Hebrew (e.g. sefer names), transliterated English (for languages that need ASCII), etc.? Should they be standardized across ports?\nI am not sure which alternatives would be best, and would like input.","author":{"url":"https://github.com/Sternbach-Software","@type":"Person","name":"Sternbach-Software"},"datePublished":"2023-08-10T06:36:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/217/zmanim/issues/217"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:102c43ad-3968-5e2b-c950-f079b259e7c6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE550:2C23AD:18512C3:207DC4D:697D264F
html-safe-nonce869d4f97d7a9588a998d9282ad020dabe8f421193454a3f4b2a8be91600761ad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTUwOjJDMjNBRDoxODUxMkMzOjIwN0RDNEQ6Njk3RDI2NEYiLCJ2aXNpdG9yX2lkIjoiNTcxMDA2Mzc3NTM1NTQ2OTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac109c72ab159438d5ed2a0175028e34a3daf731551e8b00d03f3b2141aa8d281b
hovercard-subject-tagissue:1844511823
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/KosherJava/zmanim/217/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cf7432afb967de4a22d763fd20cd6a558d5bdc6fbfe4f53e941e1b4bb8838ffb/KosherJava/zmanim/issues/217
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cf7432afb967de4a22d763fd20cd6a558d5bdc6fbfe4f53e941e1b4bb8838ffb/KosherJava/zmanim/issues/217
og:image:altI would like some input on the most ergonomic API surface for identifying a given zman. I am developing KosherKotlin in tandem with BeautifulZmanim, and the need came up to indicate a user-readable...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSternbach-Software
hostnamegithub.com
expected-hostnamegithub.com
None85f2067815dbbcfc3c95ddc086aaa4bb85c804c8c1fb2c0a58abac2793271b0b
turbo-cache-controlno-preview
go-importgithub.com/KosherJava/zmanim git https://github.com/KosherJava/zmanim.git
octolytics-dimension-user_id6101129
octolytics-dimension-user_loginKosherJava
octolytics-dimension-repository_id41635214
octolytics-dimension-repository_nwoKosherJava/zmanim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id41635214
octolytics-dimension-repository_network_root_nwoKosherJava/zmanim
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2c8ad0f3fda6467e88f69a0b1fb9a04f96d34a4d
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/KosherJava/zmanim/issues/217#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FKosherJava%2Fzmanim%2Fissues%2F217
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FKosherJava%2Fzmanim%2Fissues%2F217
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=KosherJava%2Fzmanim
Reloadhttps://patch-diff.githubusercontent.com/KosherJava/zmanim/issues/217
Reloadhttps://patch-diff.githubusercontent.com/KosherJava/zmanim/issues/217
Reloadhttps://patch-diff.githubusercontent.com/KosherJava/zmanim/issues/217
KosherJava https://patch-diff.githubusercontent.com/KosherJava
zmanimhttps://patch-diff.githubusercontent.com/KosherJava/zmanim
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FKosherJava%2Fzmanim
Fork 54 https://patch-diff.githubusercontent.com/login?return_to=%2FKosherJava%2Fzmanim
Star 121 https://patch-diff.githubusercontent.com/login?return_to=%2FKosherJava%2Fzmanim
Code https://patch-diff.githubusercontent.com/KosherJava/zmanim
Issues 13 https://patch-diff.githubusercontent.com/KosherJava/zmanim/issues
Pull requests 16 https://patch-diff.githubusercontent.com/KosherJava/zmanim/pulls
Actions https://patch-diff.githubusercontent.com/KosherJava/zmanim/actions
Projects 0 https://patch-diff.githubusercontent.com/KosherJava/zmanim/projects
Security 0 https://patch-diff.githubusercontent.com/KosherJava/zmanim/security
Insights https://patch-diff.githubusercontent.com/KosherJava/zmanim/pulse
Code https://patch-diff.githubusercontent.com/KosherJava/zmanim
Issues https://patch-diff.githubusercontent.com/KosherJava/zmanim/issues
Pull requests https://patch-diff.githubusercontent.com/KosherJava/zmanim/pulls
Actions https://patch-diff.githubusercontent.com/KosherJava/zmanim/actions
Projects https://patch-diff.githubusercontent.com/KosherJava/zmanim/projects
Security https://patch-diff.githubusercontent.com/KosherJava/zmanim/security
Insights https://patch-diff.githubusercontent.com/KosherJava/zmanim/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/KosherJava/zmanim/issues/217
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/KosherJava/zmanim/issues/217
Identifying a zman?https://patch-diff.githubusercontent.com/KosherJava/zmanim/issues/217#top
https://github.com/Sternbach-Software
https://github.com/Sternbach-Software
Sternbach-Softwarehttps://github.com/Sternbach-Software
on Aug 10, 2023https://github.com/KosherJava/zmanim/issues/217#issue-1844511823
KosherKotlinhttps://github.com/Sternbach-Software/KosherKotlin
BeautifulZmanimhttps://github.com/Sternbach-Software/BeautifulZmanim
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.