In what case are these matters stated? During the weekday. But on Shabbat, he is obligated all day until evening if he waits for nightfall at the techum to attend to burial needs. But if he does not wait for nightfall at the techum, he is obligated even toward evening. Thus far the wording of our teacher, the Beit Yosef, in section 2. And it appears clear that this is the explanation: that if he waits for nightfall at the techum, he is exempt from all mitzvot, even though it is still day and aninut applies to him. But if he does not wait for nightfall, he is obligated in all mitzvot until night. And it is not dealing with the Arvit prayer of the conclusion of Shabbat, for he is always exempt even when he does not wait for nightfall. And so it is clarified from his words in his great book, and so it is implied in the Derishah. And I am very much astonished at the commentators who wished to explain the matters also regarding the Arvit prayer, that if he did not wait for nightfall he must pray Arvit. And they were hard-pressed in this (see Bach, and Magen Avraham subsection 3, and Taz subsection 4). And so they explain the words of the Tur. And I am astonished and it requires further study. And the second day of Yom Tov, its law is like a weekday. And on the first day of Yom Tov, if he wishes to bury him by means of a non-Jew, he practices aninut, and if not, he does not practice aninut. And in Yoreh Deah there we have elaborated on this.
במה דברים אמורים? בחול. אבל בשבת חייב כל היום עד הערב אם מחשיך על התחום להתעסק בצרכי קבורה. אבל אם אינו מחשיך על התחום – חייב גם לעת ערב. עד כאן לשון רבינו הבית יוסף בסעיף ב. ונראה ברור דהכי פירושו: דאם מחשיך על התחום – פטור מכל המצות, אף שעדיין יום הוא וחל עליו אנינות. אבל אם אינו מחשיך – חייב בכל המצות עד הלילה. ולא מיירי בתפילת ערבית דמוצאי שבת, דתמיד פטור אף כשאינו מחשיך. וכן מבואר מדבריו בספרו הגדול, וכן משמע בדרישה. ומאוד תמיהני על המפרשים שרצו לפרש הדברים גם על תפילת ערבית, דאם לא החשיך צריך להתפלל ערבית. ונדחקו בזה (עיין ב"ח, ומגן אברהם סעיף קטן ג', וט"ז סעיף קטן ד'). וכן מפרשים בדברי הטור. ותמיהני וצריך עיון. ויום טוב שני דינו כחול. ויום טוב ראשון אם רוצה לקוברו על ידי עובד כוכבים – נוהג אנינות, ואם לאו – אינו נוהג אנינות. וביורה דעה שם הארכנו בזה.