When he hired him by the day, such as if he said to him, "Your wage is a perutah per day," for the day that he pays him, he is a shomer sachar, and for the day that he does not pay him, he is not a shomer sachar. Therefore, on the Shabbat day, he is not a shomer sachar, for it is forbidden to take a wage for Shabbat. However, if he hired him for a week, or for a month, or for a year, he is a shomer sachar even on Shabbat, for through inclusion it is permitted to take a wage for Shabbat, as is written in Orach Chaim siman 306. And what the law of a shomer sachar is after the time of his guarding has ended was explained in siman 291, section 2, that his law is like a shomer chinam; but on Shabbat, when he does not take a wage for Shabbat, his law is not even like a shomer chinam, see there. And if he said to him, "Guard for me one day for a wage," he is a shomer sachar for twenty-four hours. And if he said to him, "Today," he only guards until the night. And if he hired him for one week, he is a shomer for seven days of twenty-four hours. And if he said to him, "This week," it is only until the completion of the week, and Shabbat is included in the past week. And so too regarding a month and a year: when he hired him for a month or for a year, it is from day to day. For example, if he hired him on the tenth of Nisan for the duration of a month, he is a shomer sachar until the tenth of Iyar. And when he hired him on the tenth of Iyar, he is a shomer sachar until the tenth of Sivan. And even though from the tenth of Nisan until the tenth of Iyar is one day more than from the tenth of Iyar until the tenth of Sivan—since Nisan is full and Iyar is deficient—nevertheless, in the language of people, a month is in this manner. And so too regarding a year, there is no difference between a leap year and a non-leap year, for a year is from day to day. And if he hired him for "this month," he is a shomer sachar until Rosh Chodesh, and Rosh Chodesh is not included. And even if Rosh Chodesh is two days, where the first day is the thirtieth of the past month, nevertheless, in the language of people, it belongs to the coming month. And if he hired him for "this year," he is a shomer sachar until Rosh Hashanah, and Rosh Hashanah is not included. And when he hired him "until Rosh Chodesh Adar" and did not specify if it is the first Adar or the second: according to some of our teachers, plain "Adar" is the first Adar; and there are those who hold that the two Adars are like one month, and therefore if he said "until Rosh Chodesh Adar" it is the first, and if he said "until the end of Adar" it is the second. And this is the opinion of the Rambam in the tenth chapter of Nedarim. And the Rosh and the Rambam distinguish between when he knew that the year was a leap year, for then plain "Adar" is the second, and when he did not know that it was a leap year, they are like one month. See Yoreh Deah siman 220.
כששכרו ליום כגון שא"ל שכרך כל יום בפרוטה ליום שמשלם לו הוי ש"ש וליום שאינו משלם לו אינו ש"ש לפיכך ביום השבת אינו ש"ש דאסור ליטול שכר שבת אבל אם שכרו לשבוע או לחודש או לשנה הוי גם בשבת ש"ש דבהבלעה מותר ליטול שכר שבת כמ"ש בא"ח סי' ש"ו ומה דינו של ש"ש לאחר שכלתה זמן שמירתו נתבאר בסי' רצ"א סעיף ב' דדינו כש"ח אבל בשבת כשאינו נוטל שכר שבת אין דינו אפילו כש"ח ע"ש ואם א"ל שמור לי יום אחד בשכר הוי ש"ש מעל"ע ואם א"ל היום אינו שומר אלא עד הלילה ואם שכרו לשבוע אחת הוי שומר שבעה ימים מעל"ע ואם א"ל שבוע זו אינו אלא עד תשלום השבוע ושבת בכלל השבוע העבר וכן בחודש ושנה כששכרו לחודש או לשנה הוי מיום ליום כגון ששכרו בעשרה בניסן על משך חודש הוי ש"ש עד עשרה באייר וכששכרו בעשרה באייר הוי ש"ש עד י' סיון ואף על גב שמן י' ניסן עד י' אייר הוי יום אחד יותר מן י' אייר עד י' סיון דניסן הוא מלא ואייר הוא חסר מ"מ בלשון בני אדם הוי חדש באופן זה וכן בשנה אין נ"מ בין שנת העיבור לאינו עיבור דשנה הוי מיום ליום ואם שכרו לחדש זה הוי ש"ש עד ר"ח ולא ר"ח בכלל ואפילו אם ר"ח שני ימים דיום הראשון הוא שלשים לחדש העבר מ"מ בלשון בני אדם שייך לחדש הבא ואם שכרו לשנה זו הוה ש"ש עד ר"ה ולא ר"ה בכלל וכששכרו עד ר"ח אדר ולא פירש אם אדר הראשון אם השני ליש מרבותינו סתם אדר הוא אדר ראשון ויש שסוברים דשני האדרים הם כחדש אחד ולכן אם אמר עד ר"ח אדר הוא הראשון ואם אמר עד סוף אדר הוא השני וזהו דעת הרמב"ם בפ"י מנדרים והרא"ש והרמב"ם מחלק בין כשידע שהשנה מעוברת דאז סתם אדר הוי השני וכשלא ידע שהיא מעוברת הויין כחדש אחד ועיו"ד סי' ר"ך: