שולחן ערוך, יורה דעה שצ״ה
Shulchan Arukh, Yoreh De'ah 395
מקצת יום השבעה והשלשים ככולו. ובו ג' סעיפים:
כיון שעמדו מנחמים מאצל האבל ביום שביעי מותר בכל דברים שאסור בהם תוך שבעה דמקצת היום ככולו לא שנא מקצת יום שביעי לא שנא מקצת יום שלשים כיון שהנץ החמה ביום שלשים בטלו ממנו גזרת שלשים (רא"ש ורבינו ירוחם): הגה ובמדינות אלו שאין המנחמין רגילין לבא ביום ז' צריך להמתין עד שעה שרגילין המנחמים לבא בשאר ימים דהיינו לאחר יציאה מבית הכנסת שרגילין לבא מנחמין כן נראה לי ודלא כמו שרגילין להמתין שעה על היום דאין הדבר תלוי רק בעמידת המנחמין (כן משמע באשיר"י):
כיון שעמדו מנחמים מאצל האבל ביום שביעי מותר בכל דברים שאסור בהם תוך שבעה דמקצת היום ככולו לא שנא מקצת יום שביעי לא שנא מקצת יום שלשים כיון שהנץ החמה ביום שלשים בטלו ממנו גזרת שלשים (רא"ש ורבינו ירוחם): הגה ובמדינות אלו שאין המנחמין רגילין לבא ביום ז' צריך להמתין עד שעה שרגילין המנחמים לבא בשאר ימים דהיינו לאחר יציאה מבית הכנסת שרגילין לבא מנחמין כן נראה לי ודלא כמו שרגילין להמתין שעה על היום דאין הדבר תלוי רק בעמידת המנחמין (כן משמע באשיר"י):
As soon as the comforters have risen [to leave] from the presence of the mourner on the seventh day, he is permitted [to do] everything that he was forbidden during the seven [days of mourning], for part of the [seventh] day [is regarded] as the whole day, [and furthermore, there is] no difference whether it is part of the seventh day or part of the thirtieth day [of mourning], for as soon as the sun has risen on the thirtieth day, the restrictions of the thiry [days] cease to exist for him. Gloss: And in these countries where it is not customary for the comforters to come on the seventh day, one is required to wait until the hour when it is customary for the comforters to come on other days, viz., after the departure [of the worshippers] from the Synagogue, [at which time] it is customary for comforters to come. Thus seems to me [to be the correct view], and not as the common practice is to wait an hour after the day [has commenced], for the matter depends solely upon the comforters rising [to depart].
שמע שמועה רחוקה בלילה כיון דסגי בשעה אחת סלקא אפילו בלילה:
One who heard [a death report of] distant tidings at night, — since one hour [of mourning] is sufficient [in such a case], it is accounted as valid even [if observed] at night.
מי שמת אביו או אמו בראש חדש ניסן לא אמרינן בכ"ט באדר שאחריו מקצת היום ככולו אלא צריך לנהוג דברים האסורים בי"ב חדש עד שיכנס ראש חדש ניסן: הגה ונהגו להוסיף עוד היום שמת בו האב או האם לנהוג בו דין י"ב חדש ונכון הוא:
One whose father or mother died on the first day of the month of Nisan, — [the law is that] we do not say on the twenty-ninth day of Adar, following, 'A part of the day [is regarded] as the whole day,' but one must observe those things that are prohibited during the twelve months [of mourning] until the first day of the month of Nisan arrives. Gloss: It is also customary to include the day wherein [one's] father or mother died, [viz.,] to treat it [in accordance with] the law of the twelve months' [period of mourning] and this is the proper [usage].
Ashlei Ravrevei: Shulchan Aruch Yoreh Deah, Lemberg, 1888 (Public Domain) · Code of Hebrew Law by Chaim N. Denburg, Montreal, 1955 (CC-BY) · 3 se'ifim