<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[חישוב של דף היומי לפי תאריך]]></title><description><![CDATA[<p dir="rtl">אני זקוק לשיטה קצרה וקלה או ספריה שתחשב את הדף היומי לפי תאריך ב:<br />
פייתון.<br />
ואנדרואיד.<br />
תודה מראש לכל העוזרים היקרים!</p>
]]></description><link>https://tchumim.com/topic/13293/חישוב-של-דף-היומי-לפי-תאריך</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Nov 2026 22:32:10 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/13293.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 May 2022 20:58:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to חישוב של דף היומי לפי תאריך on Fri, 27 Oct 2023 13:53:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dovid" aria-label="Profile: dovid">@<bdi>dovid</bdi></a> כתב ב<a href="/post/158151">חישוב של דף היומי לפי תאריך</a>:</p>
<blockquote>
<p dir="rtl">שני כוכבים (העליתי לשלוש).</p>
</blockquote>
<p dir="rtl">5 כרגע..</p>
]]></description><link>https://tchumim.com/post/158155</link><guid isPermaLink="true">https://tchumim.com/post/158155</guid><dc:creator><![CDATA[צבי-ש]]></dc:creator><pubDate>Fri, 27 Oct 2023 13:53:20 GMT</pubDate></item><item><title><![CDATA[Reply to חישוב של דף היומי לפי תאריך on Fri, 27 Oct 2023 12:03:11 GMT]]></title><description><![CDATA[<p dir="rtl"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%94%D7%A4%D7%A6%D7%AA-%D7%90%D7%A0%D7%A7%D7%99" aria-label="Profile: הפצת-אנקי">@<bdi>הפצת-אנקי</bdi></a> אם כנים דבריך מאוד כדאי שתכתוב את זה למפתח של הספריה או תפתח שמה אישוז.<br />
מפריע לי גם שלמרות שהיו פה רבים יש לו רק שני כוכבים (העליתי לשלוש).</p>
]]></description><link>https://tchumim.com/post/158151</link><guid isPermaLink="true">https://tchumim.com/post/158151</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Fri, 27 Oct 2023 12:03:11 GMT</pubDate></item><item><title><![CDATA[Reply to חישוב של דף היומי לפי תאריך on Fri, 27 Oct 2023 11:26:50 GMT]]></title><description><![CDATA[<p dir="rtl">יש בקוד הנ"ל כמה באגים החל מקצת לפני סוף המחזור הנוכחי של הדף היומי.<br />
להלן פונקציה מתוקנת:</p>
<pre><code>def today_daf(daf_date=None) -&gt; Tuple:
    first_cycle = date(1923, 9, 23)
    scheduling = mw.col.conf.get("rollover", 4)
    delta = timedelta(hours=scheduling)
    if daf_date is not None:
        cur = daf_date
    else:
        if datetime.today().hour &lt; delta.seconds // 3600:
            cur = date.today() - timedelta(days=1)
        else:
            cur = date.today()
    days_since = cur - first_cycle
    days_since = days_since.days
    total_dapim = sum(mesekhtot.values())
    dapim_in_current_cycle = days_since % total_dapim
    dapim_in_current_cycle += 63
    dapim_in_current_cycle += 12

    count = 0
    for mesekhta, pages in mesekhtot.items():
        count += 1
        # print(count)
        if dapim_in_current_cycle &lt; pages:
            if mesekhta == "קינים":
                dapim_in_current_cycle += 21
            if mesekhta == "תמיד":
                dapim_in_current_cycle += 25
            if mesekhta == "מדות":
                dapim_in_current_cycle += 33
            return (mesekhta, _num_to_str(dapim_in_current_cycle + 2, False))
            # break
        dapim_in_current_cycle = dapim_in_current_cycle - pages
    return ("ברכות", _num_to_str(dapim_in_current_cycle + 2, False))
</code></pre>
]]></description><link>https://tchumim.com/post/158150</link><guid isPermaLink="true">https://tchumim.com/post/158150</guid><dc:creator><![CDATA[הפצת אנקי]]></dc:creator><pubDate>Fri, 27 Oct 2023 11:26:50 GMT</pubDate></item><item><title><![CDATA[Reply to חישוב של דף היומי לפי תאריך on Wed, 25 May 2022 01:17:43 GMT]]></title><description><![CDATA[<p dir="rtl">המעבר  מדפוס סלאוויטה (12 דפים) לדפוס וילנא (21) התבצע החל מהסבב השמיני (בהתאם להכרעתו של מרן הגאון רבי משה פיינשטיין זצוק"ל שאין במיעוט הלימוד חשש של הפרת נדר)<br />
הפרש הדפים הוא 9 כפול 7 מחזורים (9 * 7 = 63)<br />
כפי שניתן לראות הספרייה  הספרייה המדוברת מאת <a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%A6%D7%93%D7%99%D7%A7-%D7%AA%D7%9E%D7%99%D7%9D" aria-label="Profile: צדיק-תמים">@<bdi>צדיק-תמים</bdi></a>  <a href="https://github.com/danyeric123/DafYomiAndMore/blob/27205c60ae51f88ed288fdaba03c890f9a09d786/main.py#L51" target="_blank" rel="noopener noreferrer nofollow ugc">לקחה את הדבר בחשבון</a>.</p>
<pre><code>dapim_in_current_cycle = days_since % total_dapim + 63
</code></pre>
<p dir="rtl"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%94%D7%A4%D7%A6%D7%AA-%D7%90%D7%A0%D7%A7%D7%99" aria-label="Profile: הפצת-אנקי">@<bdi>הפצת-אנקי</bdi></a> ע"ע <a href="https://he.wikipedia.org/wiki/%D7%94%D7%93%D7%A3_%D7%94%D7%99%D7%95%D7%9E%D7%99#:~:text=(%D7%99%D7%A8%D7%95%D7%A9%D7%9C%D7%9E%D7%99)-,21%20(%D7%91%D7%A2%D7%91%D7%A8%2012),-%D7%99%D7%95%D7%9E%D7%90" target="_blank" rel="noopener noreferrer nofollow ugc">הדף היומי</a></p>
]]></description><link>https://tchumim.com/post/140272</link><guid isPermaLink="true">https://tchumim.com/post/140272</guid><dc:creator><![CDATA[רפאל]]></dc:creator><pubDate>Wed, 25 May 2022 01:17:43 GMT</pubDate></item><item><title><![CDATA[Reply to חישוב של דף היומי לפי תאריך on Sun, 22 May 2022 21:55:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aharon-0" aria-label="Profile: Aharon-0">@<bdi>Aharon-0</bdi></a> באיזה ערך?</p>
]]></description><link>https://tchumim.com/post/140258</link><guid isPermaLink="true">https://tchumim.com/post/140258</guid><dc:creator><![CDATA[הפצת אנקי]]></dc:creator><pubDate>Sun, 22 May 2022 21:55:28 GMT</pubDate></item><item><title><![CDATA[Reply to חישוב של דף היומי לפי תאריך on Sun, 22 May 2022 19:09:42 GMT]]></title><description><![CDATA[<p dir="rtl">שים לב שיש באג נפוץ ברוב הספריות, עקב שינוי הדפוס במסכת שקלים, עיין בויקיפדיה</p>
]]></description><link>https://tchumim.com/post/140255</link><guid isPermaLink="true">https://tchumim.com/post/140255</guid><dc:creator><![CDATA[Aharon 0]]></dc:creator><pubDate>Sun, 22 May 2022 19:09:42 GMT</pubDate></item><item><title><![CDATA[Reply to חישוב של דף היומי לפי תאריך on Fri, 13 May 2022 14:36:27 GMT]]></title><description><![CDATA[<p dir="rtl"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%A6%D7%93%D7%99%D7%A7-%D7%AA%D7%9E%D7%99%D7%9D" aria-label="Profile: צדיק-תמים">@<bdi>צדיק-תמים</bdi></a> עובד מצוין. תודה.</p>
]]></description><link>https://tchumim.com/post/139989</link><guid isPermaLink="true">https://tchumim.com/post/139989</guid><dc:creator><![CDATA[הפצת אנקי]]></dc:creator><pubDate>Fri, 13 May 2022 14:36:27 GMT</pubDate></item><item><title><![CDATA[Reply to חישוב של דף היומי לפי תאריך on Thu, 12 May 2022 23:27:00 GMT]]></title><description><![CDATA[<p dir="rtl"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%94%D7%A4%D7%A6%D7%AA-%D7%90%D7%A0%D7%A7%D7%99" aria-label="Profile: הפצת-אנקי">@<bdi>הפצת-אנקי</bdi></a> אמר ב<a href="/post/139967">חישוב של דף היומי לפי תאריך</a>:</p>
<blockquote>
<p dir="rtl">פייתון.</p>
</blockquote>
<p dir="rtl">אולי <a href="https://github.com/danyeric123/DafYomiAndMore" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/danyeric123/DafYomiAndMore</a>?</p>
]]></description><link>https://tchumim.com/post/139968</link><guid isPermaLink="true">https://tchumim.com/post/139968</guid><dc:creator><![CDATA[צדיק תמים]]></dc:creator><pubDate>Thu, 12 May 2022 23:27:00 GMT</pubDate></item></channel></rss>