From 560b2aa80ba4fe24ba454aefc6fbe7882696b762 Mon Sep 17 00:00:00 2001 From: Micheal Mand Date: Mon, 30 Sep 2019 22:50:52 -0600 Subject: [PATCH] Add missing methods to docs --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2f836bf..48f987d 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,8 @@ $calendar->setYear(2015); $calendar->setMonth(7); $calendar->setTimezone($timezone); // where $timezone is either a bare timezone string, or a DateTimeZone object $calendar->getTimezone(); // returns the currently set timezone of the calendar as a DateTimeZone object +$calendar->setWeekStart(CarbonInterface::SUNDAY); // or you may use the zero-indexed day integer +$calendar->getWeekStart(); // returns the current start of the week zero-indexed day integer $calendar->getFirstDay(); // returns the first day of the month $calendar->getLastDay(); // returns the last day of the month $calendar->getWeeks() // returns an array of Week objects