October\Rain\Argon\Argon

Source: ~/vendor/october/rain/src/Argon/Argon.php

Extends:

  • Jenssegers\Date\Date
  • Carbon\Carbon
  • DateTime

Implements:

  • DateTimeInterface
  • JsonSerializable

Umbrella class.

Public properties

There are no public properties in the class.

Show inherited public properties

Inherited public properties

  • public static int $PHPIntSize - defined in Carbon\Carbon. Customizable PHP_INT_SIZE override.

Protected properties

There are no protected properties in the class.

Show inherited protected properties

Inherited protected properties

  • protected static Translator $translator - defined in Jenssegers\Date\Date. The Translator implementation.
  • protected static string $fallbackLocale - defined in Jenssegers\Date\Date. The fallback locale when a locale is not available.
  • protected static array $lastErrors - defined in Jenssegers\Date\Date. The errors that can occur.
  • protected static array $days - defined in Carbon\Carbon. Names of days of the week.
  • protected static string $toStringFormat - defined in Carbon\Carbon. Format to use for __toString method when type juggling occurs.
  • protected static int $weekStartsAt - defined in Carbon\Carbon. First day of week.
  • protected static int $weekEndsAt - defined in Carbon\Carbon. Last day of week.
  • protected static array $weekendDays - defined in Carbon\Carbon. Days of weekend.
  • protected static int $midDayAt - defined in Carbon\Carbon. Midday/noon hour.
  • protected static array $regexFormats - defined in Carbon\Carbon. Format regex patterns.
  • protected static Carbon\Carbon $testNow - defined in Carbon\Carbon. A test Carbon instance to be returned when now instances are created.
  • protected static callable|null $serializer - defined in Carbon\Carbon. The custom Carbon JSON serializer.
  • protected static array $localMacros - defined in Carbon\Carbon. The registered string macros.
  • protected static bool $utf8 - defined in Carbon\Carbon. Will UTF8 encoding be used to print localized date/time ?
  • protected static bool $microsecondsFallback - defined in Carbon\Carbon. Add microseconds to now on PHP < 7.1 and 7.1.3. true by default.
  • protected static bool $monthsOverflow - defined in Carbon\Carbon. Indicates if months should be calculated with overflow.
  • protected static bool $yearsOverflow - defined in Carbon\Carbon. Indicates if years should be calculated with overflow.
  • protected static bool $compareYearWithMonth - defined in Carbon\Carbon. Indicates if years are compared with month by default so isSameMonth and isSameQuarter have $ofSameYear set.
  • protected static int $humanDiffOptions - defined in Carbon\Carbon. Options for diffForHumans().

Public methods

Show inherited public methods

Inherited public methods

  • public mixed __call(string $method, array $parameters) - defined in Carbon\Carbon. Dynamically handle calls to the class.
  • public static mixed __callStatic(string $method, array $parameters) - defined in Carbon\Carbon. Dynamically handle calls to the class.
  • public void __construct(string $time=NULL, string|DateTimeZone $timezone=NULL) - defined in Jenssegers\Date\Date. Returns new DateTime object.
  • public string|int|bool|\DateTimeZone __get(string $name) - defined in Carbon\Carbon. Get a part of the Carbon object.
  • public bool __isset(string $name) - defined in Carbon\Carbon. Check if an attribute exists on the object.
  • public void __set(string $name, string|int|\DateTimeZone $value) - defined in Carbon\Carbon. Set a part of the Carbon object.
  • public static static __set_state(array $array) - defined in Carbon\Carbon. The __set_state handler.
  • public string __toString() - defined in Carbon\Carbon. Format the instance as a string using the set format.
  • public void __wakeup() - defined in DateTime.
  • public Date|bool add(DateInterval|string $interval) - defined in Jenssegers\Date\Date. Adds an amount of days, months, years, hours, minutes and seconds to a Date object.
  • public static addCenturies(int $value) - defined in Carbon\Carbon. Add centuries to the instance. Positive $value travels forward while.
  • public static addCentury(int $value=1) - defined in Carbon\Carbon. Add a century to the instance.
  • public static addDay(int $value=1) - defined in Carbon\Carbon. Add a day to the instance.
  • public static addDays(int $value) - defined in Carbon\Carbon. Add days to the instance. Positive $value travels forward while.
  • public static addHour(int $value=1) - defined in Carbon\Carbon. Add an hour to the instance.
  • public static addHours(int $value) - defined in Carbon\Carbon. Add hours to the instance. Positive $value travels forward while.
  • public static addMinute(int $value=1) - defined in Carbon\Carbon. Add a minute to the instance.
  • public static addMinutes(int $value) - defined in Carbon\Carbon. Add minutes to the instance using timestamp. Positive $value.
  • public static addMonth(int $value=1) - defined in Carbon\Carbon. Add a month to the instance.
  • public static addMonthNoOverflow(int $value=1) - defined in Carbon\Carbon. Add a month with no overflow to the instance.
  • public static addMonthWithOverflow(int $value=1) - defined in Carbon\Carbon. Add a month to the instance.
  • public static addMonths(int $value) - defined in Carbon\Carbon. Add months to the instance. Positive $value travels forward while.
  • public static addMonthsNoOverflow(int $value) - defined in Carbon\Carbon. Add months without overflowing to the instance. Positive $value.
  • public static addMonthsWithOverflow(int $value) - defined in Carbon\Carbon. Add months to the instance. Positive $value travels forward while.
  • public static addQuarter(int $value=1) - defined in Carbon\Carbon. Add a quarter to the instance.
  • public static addQuarters(int $value) - defined in Carbon\Carbon. Add quarters to the instance. Positive $value travels forward while.
  • public static addRealHour(int $value=1) - defined in Carbon\Carbon. Add an hour to the instance using timestamp.
  • public static addRealHours(int $value) - defined in Carbon\Carbon. Add hours to the instance using timestamp. Positive $value travels.
  • public static addRealMinute(int $value=1) - defined in Carbon\Carbon. Add a minute to the instance using timestamp.
  • public static addRealMinutes(int $value) - defined in Carbon\Carbon. Add minutes to the instance using timestamp. Positive $value travels.
  • public static addRealSecond(int $value=1) - defined in Carbon\Carbon. Add a second to the instance using timestamp.
  • public static addRealSeconds(int $value) - defined in Carbon\Carbon. Add seconds to the instance using timestamp. Positive $value travels.
  • public static addSecond(int $value=1) - defined in Carbon\Carbon. Add a second to the instance.
  • public static addSeconds(int $value) - defined in Carbon\Carbon. Add seconds to the instance. Positive $value travels forward while.
  • public static addWeek(int $value=1) - defined in Carbon\Carbon. Add a week to the instance.
  • public static addWeekday(int $value=1) - defined in Carbon\Carbon. Add a weekday to the instance.
  • public static addWeekdays(int $value) - defined in Carbon\Carbon. Add weekdays to the instance. Positive $value travels forward while.
  • public static addWeeks(int $value) - defined in Carbon\Carbon. Add weeks to the instance. Positive $value travels forward while.
  • public static addYear(int $value=1) - defined in Carbon\Carbon. Add a year to the instance.
  • public static addYearNoOverflow(int $value=1) - defined in Carbon\Carbon. Add year with overflow months set to false.
  • public static addYearWithOverflow(int $value=1) - defined in Carbon\Carbon. Add year with overflow.
  • public static addYears(int $value) - defined in Carbon\Carbon. Add years to the instance. Positive $value travel forward while.
  • public static addYearsNoOverflow(int $value) - defined in Carbon\Carbon. Add years to the instance with no overflow of months.
  • public static addYearsWithOverflow(int $value) - defined in Carbon\Carbon. Add years to the instance.
  • public string ago(Date $since=NULL, bool $absolute=false) - defined in Jenssegers\Date\Date. Alias for diffForHumans.
  • public static average(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL) - defined in Carbon\Carbon. Modify the current instance to the average of a given instance (default now) and the current instance.
  • public bool between(Carbon\Carbon|\DateTimeInterface|mixed $date1, Carbon\Carbon|\DateTimeInterface|mixed $date2, bool $equal=true) - defined in Carbon\Carbon. Determines if the instance is between two others.
  • public static closest(Carbon\Carbon|\DateTimeInterface|mixed $date1, Carbon\Carbon|\DateTimeInterface|mixed $date2) - defined in Carbon\Carbon. Get the closest date from the instance.
  • public static bool compareYearWithMonth($compareYearWithMonth=true) - defined in Carbon\Carbon. Get the month comparison default behavior.
  • public static copy() - defined in Carbon\Carbon. Get a copy of the instance.
  • public static static create(int|null $year=NULL, int|null $month=NULL, int|null $day=NULL, int|null $hour=NULL, int|null $minute=NULL, int|null $second=NULL, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a new Carbon instance from a specific date and time.
  • public static static createFromDate(int|null $year=NULL, int|null $month=NULL, int|null $day=NULL, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from just a date. The time portion is set to now.
  • public static void createFromFormat($format, $time, $timezone=NULL) - defined in Jenssegers\Date\Date.
  • public static static createFromTime(int|null $hour=NULL, int|null $minute=NULL, int|null $second=NULL, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from just a time. The date portion is set to today.
  • public static static createFromTimeString(string $time, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from a time string. The date portion is set to today.
  • public static static createFromTimestamp(int $timestamp, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from a timestamp.
  • public static static createFromTimestampMs(int $timestamp, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from a timestamp in milliseconds.
  • public static static createFromTimestampUTC(int $timestamp) - defined in Carbon\Carbon. Create a Carbon instance from an UTC timestamp.
  • public static static createMidnightDate(int|null $year=NULL, int|null $month=NULL, int|null $day=NULL, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from just a date. The time portion is set to midnight.
  • public static static createSafe(int|null $year=NULL, int|null $month=NULL, int|null $day=NULL, int|null $hour=NULL, int|null $minute=NULL, int|null $second=NULL, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a new safe Carbon instance from a specific date and time.
  • public static day(int $value) - defined in Carbon\Carbon. Set the instance's day.
  • public void diff($object, $absolute=NULL) - defined in DateTime.
  • public CarbonInterval diffAsCarbonInterval(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference as a CarbonInterval instance.
  • public int diffFiltered(CarbonInterval $ci, Closure $callback, Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference by the given interval using a filter closure.
  • public string diffForHumans(Carbon|null $other=NULL, bool $absolute=false, bool $short=false, int $parts=1) - defined in Carbon\Carbon. Get the difference in a human readable format in the current locale.
  • public int diffInDays(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in days.
  • public int diffInDaysFiltered(Closure $callback, Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in days using a filter closure.
  • public int diffInHours(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in hours.
  • public int diffInHoursFiltered(Closure $callback, Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in hours using a filter closure.
  • public int diffInMinutes(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in minutes.
  • public int diffInMonths(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in months.
  • public int diffInRealHours(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in hours using timestamps.
  • public int diffInRealMinutes(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in minutes using timestamps.
  • public int diffInRealSeconds(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in seconds using timestamps.
  • public int diffInSeconds(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in seconds.
  • public int diffInWeekdays(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in weekdays.
  • public int diffInWeekendDays(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in weekend days using a filter.
  • public int diffInWeeks(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in weeks.
  • public int diffInYears(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in years.
  • public static void disableHumanDiffOption(int $humanDiffOption) - defined in Carbon\Carbon.
  • public static void enableHumanDiffOption(int $humanDiffOption) - defined in Carbon\Carbon.
  • public static endOfCentury() - defined in Carbon\Carbon. Resets the date to end of the century and time to 23:59:59.
  • public static endOfDay() - defined in Carbon\Carbon. Resets the time to 23:59:59 end of day.
  • public static endOfDecade() - defined in Carbon\Carbon. Resets the date to end of the decade and time to 23:59:59.
  • public static endOfHour() - defined in Carbon\Carbon. Modify to end of current hour, minutes and seconds become 59.
  • public static endOfMinute() - defined in Carbon\Carbon. Modify to end of current minute, seconds become 59.
  • public static endOfMonth() - defined in Carbon\Carbon. Resets the date to end of the month and time to 23:59:59.
  • public static endOfQuarter() - defined in Carbon\Carbon. Resets the date to end of the quarter and time to 23:59:59.
  • public static endOfSecond() - defined in Carbon\Carbon. Modify to end of current minute, seconds become 59.
  • public static endOfWeek() - defined in Carbon\Carbon. Resets the date to end of week (defined in $weekEndsAt) and time to 23:59:59.
  • public static endOfYear() - defined in Carbon\Carbon. Resets the date to end of the year and time to 23:59:59.
  • public bool eq(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is equal to another.
  • public bool equalTo(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is equal to another.
  • public static mixed executeWithLocale(string $locale, $func) - defined in Carbon\Carbon. Set the current locale to the given, execute the passed function, reset the locale to previous one,
  • public static farthest(Carbon\Carbon|\DateTimeInterface|mixed $date1, Carbon\Carbon|\DateTimeInterface|mixed $date2) - defined in Carbon\Carbon. Get the farthest date from the instance.
  • public static firstOfMonth(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the first occurrence of a given day of the week.
  • public static firstOfQuarter(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the first occurrence of a given day of the week.
  • public static firstOfYear(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the first occurrence of a given day of the week.
  • public void format($format) - defined in Jenssegers\Date\Date.
  • public string formatLocalized(string $format) - defined in Carbon\Carbon. Format the instance with the current locale. You can set the current.
  • public static static fromSerialized(string $value) - defined in Carbon\Carbon. Create an instance from a serialized string.
  • public static array getAvailableLocales() - defined in Carbon\Carbon. Returns the list of internally available locales and already loaded custom locales.
  • public static array getDays() - defined in Carbon\Carbon. Get the days of the week.
  • public static string getFallbackLocale() - defined in Jenssegers\Date\Date. Get the fallback locale.
  • public static int getHumanDiffOptions() - defined in Carbon\Carbon.
  • public static string getLanguageFromLocale(string $locale) - defined in Jenssegers\Date\Date. Get the language portion of the locale.
  • public static void getLastErrors() - defined in Carbon\Carbon. {@inheritdoc}.
  • public static void getLocale() - defined in Jenssegers\Date\Date.
  • public static int getMidDayAt() - defined in Carbon\Carbon. get midday/noon hour.
  • public void getOffset() - defined in DateTime.
  • public static static getTestNow() - defined in Carbon\Carbon. Get the Carbon instance (real or mock) to be returned when a "now".
  • public void getTimestamp() - defined in DateTime.
  • public void getTimezone() - defined in DateTime.
  • public static void getTranslator() - defined in Jenssegers\Date\Date.
  • public static int getWeekEndsAt() - defined in Carbon\Carbon. Get the last day of week.
  • public static int getWeekStartsAt() - defined in Carbon\Carbon. Get the first day of week.
  • public static array getWeekendDays() - defined in Carbon\Carbon. Get weekend days.
  • public bool greaterThan(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is greater (after) than another.
  • public bool greaterThanOrEqualTo(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is greater (after) than or equal to another.
  • public bool gt(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is greater (after) than another.
  • public bool gte(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is greater (after) than or equal to another.
  • public static bool hasFormat(string $date, string $format) - defined in Carbon\Carbon. Checks if the (date)time string is in a given format.
  • public static bool hasMacro(string $name) - defined in Carbon\Carbon. Checks if macro is registered.
  • public static bool hasRelativeKeywords(string $time) - defined in Carbon\Carbon. Determine if a time string will produce a relative date.
  • public static bool hasTestNow() - defined in Carbon\Carbon. Determine if there is a valid test instance set. A valid test instance.
  • public static hour(int $value) - defined in Carbon\Carbon. Set the instance's hour.
  • public static static instance(DateTime|\DateTimeInterface $date) - defined in Carbon\Carbon. Create a Carbon instance from a DateTime one.
  • public bool isBirthday(Carbon\Carbon|\DateTimeInterface|null $date=NULL) - defined in Carbon\Carbon. Check if its the birthday. Compares the date/month values of the two dates.
  • public bool isCurrentDay() - defined in Carbon\Carbon. Determines if the instance is in the current day.
  • public bool isCurrentHour() - defined in Carbon\Carbon. Determines if the instance is in the current hour.
  • public bool isCurrentMinute() - defined in Carbon\Carbon. Determines if the instance is in the current minute.
  • public bool isCurrentMonth(bool $ofSameYear=NULL) - defined in Carbon\Carbon. Determines if the instance is in the current month.
  • public bool isCurrentQuarter() - defined in Carbon\Carbon. Determines if the instance is in the current month.
  • public bool isCurrentSecond() - defined in Carbon\Carbon. Determines if the instance is in the current second.
  • public bool isCurrentYear() - defined in Carbon\Carbon. Determines if the instance is in the current year.
  • public bool isDayOfWeek(int $dayOfWeek) - defined in Carbon\Carbon. Checks if this day is a specific day of the week.
  • public bool isEndOfDay(bool $checkMicroseconds=false) - defined in Carbon\Carbon. Check if the instance is end of day.
  • public bool isFriday() - defined in Carbon\Carbon. Checks if this day is a Friday.
  • public bool isFuture() - defined in Carbon\Carbon. Determines if the instance is in the future, ie. greater (after) than now.
  • public bool isLastMonth() - defined in Carbon\Carbon. Determines if the instance is within the last month.
  • public bool isLastOfMonth() - defined in Carbon\Carbon. Check if today is the last day of the Month.
  • public bool isLastQuarter() - defined in Carbon\Carbon. Determines if the instance is within the last quarter.
  • public bool isLastWeek() - defined in Carbon\Carbon. Determines if the instance is within the last week.
  • public bool isLastYear() - defined in Carbon\Carbon. Determines if the instance is within the previous year.
  • public bool isLeapYear() - defined in Carbon\Carbon. Determines if the instance is a leap year.
  • public bool isLongYear() - defined in Carbon\Carbon. Determines if the instance is a long year.
  • public static bool isMicrosecondsFallbackEnabled() - defined in Carbon\Carbon. Return true if microseconds fallback on PHP < 7.1 and 7.1.3 is.
  • public bool isMidday() - defined in Carbon\Carbon. Check if the instance is midday.
  • public bool isMidnight() - defined in Carbon\Carbon. Check if the instance is start of day / midnight.
  • public bool isMonday() - defined in Carbon\Carbon. Checks if this day is a Monday.
  • public bool isNextMonth() - defined in Carbon\Carbon. Determines if the instance is within the next month.
  • public bool isNextQuarter() - defined in Carbon\Carbon. Determines if the instance is within the next quarter.
  • public bool isNextWeek() - defined in Carbon\Carbon. Determines if the instance is within the next week.
  • public bool isNextYear() - defined in Carbon\Carbon. Determines if the instance is within next year.
  • public bool isPast() - defined in Carbon\Carbon. Determines if the instance is in the past, ie. less (before) than now.
  • public bool isSameAs(string $format, Carbon\Carbon|\DateTimeInterface|null $date=NULL) - defined in Carbon\Carbon. Compares the formatted values of the two dates.
  • public bool isSameDay(Carbon\Carbon|\DateTimeInterface|null $date=NULL) - defined in Carbon\Carbon. Checks if the passed in date is the same exact day as the instance´s day.
  • public bool isSameHour(Carbon\Carbon|\DateTimeInterface|null $date=NULL) - defined in Carbon\Carbon. Checks if the passed in date is the same exact hour as the instance´s hour.
  • public bool isSameMinute(Carbon\Carbon|\DateTimeInterface|null $date=NULL) - defined in Carbon\Carbon. Checks if the passed in date is the same exact minute as the instance´s minute.
  • public bool isSameMonth(Carbon\Carbon|\DateTimeInterface|null $date=NULL, bool $ofSameYear=NULL) - defined in Carbon\Carbon. Checks if the passed in date is in the same month as the instance´s month.
  • public bool isSameQuarter(Carbon\Carbon|\DateTimeInterface|null $date=NULL, bool $ofSameYear=NULL) - defined in Carbon\Carbon. Checks if the passed in date is in the same quarter as the instance quarter (and year if needed).
  • public bool isSameSecond(Carbon\Carbon|\DateTimeInterface|null $date=NULL) - defined in Carbon\Carbon. Checks if the passed in date is the same exact second as the instance´s second.
  • public bool isSameYear(Carbon\Carbon|\DateTimeInterface|null $date=NULL) - defined in Carbon\Carbon. Checks if the passed in date is in the same year as the instance year.
  • public bool isSaturday() - defined in Carbon\Carbon. Checks if this day is a Saturday.
  • public bool isStartOfDay(bool $checkMicroseconds=false) - defined in Carbon\Carbon. Check if the instance is start of day / midnight.
  • public bool isSunday() - defined in Carbon\Carbon. Checks if this day is a Sunday.
  • public bool isThursday() - defined in Carbon\Carbon. Checks if this day is a Thursday.
  • public bool isToday() - defined in Carbon\Carbon. Determines if the instance is today.
  • public bool isTomorrow() - defined in Carbon\Carbon. Determines if the instance is tomorrow.
  • public bool isTuesday() - defined in Carbon\Carbon. Checks if this day is a Tuesday.
  • public bool isWednesday() - defined in Carbon\Carbon. Checks if this day is a Wednesday.
  • public bool isWeekday() - defined in Carbon\Carbon. Determines if the instance is a weekday.
  • public bool isWeekend() - defined in Carbon\Carbon. Determines if the instance is a weekend day.
  • public bool isYesterday() - defined in Carbon\Carbon. Determines if the instance is yesterday.
  • public array|string jsonSerialize() - defined in Carbon\Carbon. Prepare the object for JSON serialization.
  • public static lastOfMonth(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the last occurrence of a given day of the week.
  • public static lastOfQuarter(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the last occurrence of a given day of the week.
  • public static lastOfYear(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the last occurrence of a given day of the week.
  • public bool lessThan(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is less (before) than another.
  • public bool lessThanOrEqualTo(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is less (before) or equal to another.
  • public static bool localeHasDiffOneDayWords(string $locale) - defined in Carbon\Carbon. Returns true if the given locale is internally supported and has words for 1-day diff (just now, yesterday, tomorrow).
  • public static bool localeHasDiffSyntax(string $locale) - defined in Carbon\Carbon. Returns true if the given locale is internally supported and has diff syntax support (ago, from now, before, after).
  • public static bool localeHasDiffTwoDayWords(string $locale) - defined in Carbon\Carbon. Returns true if the given locale is internally supported and has words for 2-days diff (before yesterday, after tomorrow).
  • public static bool localeHasPeriodSyntax(string $locale) - defined in Carbon\Carbon. Returns true if the given locale is internally supported and has period syntax support (X times, every X, from X, to X).
  • public static bool localeHasShortUnits(string $locale) - defined in Carbon\Carbon. Returns true if the given locale is internally supported and has short-units support.
  • public bool lt(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is less (before) than another.
  • public bool lte(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is less (before) or equal to another.
  • public static void macro(string $name, object|callable $macro) - defined in Carbon\Carbon. Register a custom macro.
  • public static Date make(string $time=NULL, string|DateTimeZone $timezone=NULL) - defined in Jenssegers\Date\Date. Create and return new Date instance.
  • public static max(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL) - defined in Carbon\Carbon. Get the maximum instance between a given instance (default now) and the current instance.
  • public static static maxValue() - defined in Carbon\Carbon. Create a Carbon instance for the greatest supported date.
  • public static maximum(Carbon\Carbon|\DateTimeInterface|mixed $date=NULL) - defined in Carbon\Carbon. Get the maximum instance between a given instance (default now) and the current instance.
  • public static midDay() - defined in Carbon\Carbon. Modify to midday, default to self::$midDayAt.
  • public static min(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL) - defined in Carbon\Carbon. Get the minimum instance between a given instance (default now) and the current instance.
  • public static static minValue() - defined in Carbon\Carbon. Create a Carbon instance for the lowest supported date.
  • public static minimum(Carbon\Carbon|\DateTimeInterface|mixed $date=NULL) - defined in Carbon\Carbon. Get the minimum instance between a given instance (default now) and the current instance.
  • public static minute(int $value) - defined in Carbon\Carbon. Set the instance's minute.
  • public static void mixin(object $mixin) - defined in Carbon\Carbon. Mix another object into the class.
  • public void modify($modify) - defined in DateTime.
  • public static month(int $value) - defined in Carbon\Carbon. Set the instance's month.
  • public bool ne(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is not equal to another.
  • public static next(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the next occurrence of a given day of the week.
  • public $this nextWeekday() - defined in Carbon\Carbon. Go forward to the next weekday.
  • public $this nextWeekendDay() - defined in Carbon\Carbon. Go forward to the next weekend day.
  • public bool notEqualTo(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is not equal to another.
  • public static static now(DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Get a Carbon instance for the current date and time.
  • public static nowWithSameTz() - defined in Carbon\Carbon. Returns a present instance in the same timezone.
  • public mixed nthOfMonth(int $nth, int $dayOfWeek) - defined in Carbon\Carbon. Modify to the given occurrence of a given day of the week.
  • public mixed nthOfQuarter(int $nth, int $dayOfWeek) - defined in Carbon\Carbon. Modify to the given occurrence of a given day of the week.
  • public mixed nthOfYear(int $nth, int $dayOfWeek) - defined in Carbon\Carbon. Modify to the given occurrence of a given day of the week.
  • public static Date parse(string $time=NULL, string|DateTimeZone $timezone=NULL) - defined in Jenssegers\Date\Date. Create a Date instance from a string.
  • public static previous(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the previous occurrence of a given day of the week.
  • public $this previousWeekday() - defined in Carbon\Carbon. Go backward to the previous weekday.
  • public $this previousWeekendDay() - defined in Carbon\Carbon. Go backward to the previous weekend day.
  • public static void resetMonthsOverflow() - defined in Carbon\Carbon. Reset the month overflow behavior.
  • public static void resetToStringFormat() - defined in Carbon\Carbon. Reset the format used to the default when type juggling a Carbon instance to a string.
  • public static void resetYearsOverflow() - defined in Carbon\Carbon. Reset the month overflow behavior.
  • public static second(int $value) - defined in Carbon\Carbon. Set the instance's second.
  • public int secondsSinceMidnight() - defined in Carbon\Carbon. The number of seconds since midnight.
  • public int secondsUntilEndOfDay() - defined in Carbon\Carbon. The number of seconds until 23:59:59.
  • public string serialize() - defined in Carbon\Carbon. Return a serialized string of the instance.
  • public static void serializeUsing(callable $callback) - defined in Carbon\Carbon. JSON serialize all Carbon instances using the given callback.
  • public static setDate(int $year, int $month, int $day) - defined in Carbon\Carbon. Sets the current date of the DateTime object to a different date.
  • public static setDateFrom(Carbon\Carbon|\DateTimeInterface $date) - defined in Carbon\Carbon. Set the year, month, and date for this instance to that of the passed instance.
  • public static setDateTime(int $year, int $month, int $day, int $hour, int $minute, int $second=0) - defined in Carbon\Carbon. Set the date and time all together.
  • public static void setFallbackLocale(string $locale) - defined in Jenssegers\Date\Date. Set the fallback locale.
  • public static void setHumanDiffOptions(int $humanDiffOptions) - defined in Carbon\Carbon. Sets
  • public void setISODate($year, $week, $day=NULL) - defined in DateTime.
  • public static void setLocale($locale) - defined in Jenssegers\Date\Date.
  • public static void setMidDayAt(int $hour) - defined in Carbon\Carbon. Set midday/noon hour.
  • public static void setTestNow(Carbon\Carbon|null $testNow=NULL) - defined in Carbon\Carbon. Set a Carbon instance (real or mock) to be returned when a "now".
  • public void setTime($hour, $minute, $second=NULL, $microseconds=NULL) - defined in DateTime.
  • public static setTimeFrom(Carbon\Carbon|\DateTimeInterface $date) - defined in Carbon\Carbon. Set the hour, day, and time for this instance to that of the passed instance.
  • public static setTimeFromTimeString(string $time) - defined in Carbon\Carbon. Set the time by time string.
  • public void setTimestamp($unixtimestamp) - defined in DateTime.
  • public static setTimezone(DateTimeZone|string $value) - defined in Carbon\Carbon. Set the instance's timezone from a string or object.
  • public static void setToStringFormat(string|Closure $format) - defined in Carbon\Carbon. Set the default format used when type juggling a Carbon instance to a string.
  • public static void setTranslator($translator) - defined in Jenssegers\Date\Date.
  • public static void setUtf8(bool $utf8) - defined in Carbon\Carbon. Set if UTF8 will be used for localized date/time.
  • public static void setWeekEndsAt(int $day) - defined in Carbon\Carbon. Set the last day of week.
  • public static void setWeekStartsAt(int $day) - defined in Carbon\Carbon. Set the first day of week.
  • public static void setWeekendDays(array $days) - defined in Carbon\Carbon. Set weekend days.
  • public static bool shouldCompareYearWithMonth() - defined in Carbon\Carbon. Get the month comparison default behavior.
  • public static bool shouldOverflowMonths() - defined in Carbon\Carbon. Get the month overflow behavior.
  • public static bool shouldOverflowYears() - defined in Carbon\Carbon. Get the month overflow behavior.
  • public static startOfCentury() - defined in Carbon\Carbon. Resets the date to the first day of the century and the time to 00:00:00.
  • public static startOfDay() - defined in Carbon\Carbon. Resets the time to 00:00:00 start of day.
  • public static startOfDecade() - defined in Carbon\Carbon. Resets the date to the first day of the decade and the time to 00:00:00.
  • public static startOfHour() - defined in Carbon\Carbon. Modify to start of current hour, minutes and seconds become 0.
  • public static startOfMinute() - defined in Carbon\Carbon. Modify to start of current minute, seconds become 0.
  • public static startOfMonth() - defined in Carbon\Carbon. Resets the date to the first day of the month and the time to 00:00:00.
  • public static startOfQuarter() - defined in Carbon\Carbon. Resets the date to the first day of the quarter and the time to 00:00:00.
  • public static startOfSecond() - defined in Carbon\Carbon. Modify to start of current minute, seconds become 0.
  • public static startOfWeek() - defined in Carbon\Carbon. Resets the date to the first day of week (defined in $weekStartsAt) and the time to 00:00:00.
  • public static startOfYear() - defined in Carbon\Carbon. Resets the date to the first day of the year and the time to 00:00:00.
  • public Date|bool sub(DateInterval|string $interval) - defined in Jenssegers\Date\Date. Subtracts an amount of days, months, years, hours, minutes and seconds from a DateTime object.
  • public static subCenturies(int $value) - defined in Carbon\Carbon. Remove centuries from the instance.
  • public static subCentury(int $value=1) - defined in Carbon\Carbon. Remove a century from the instance.
  • public static subDay(int $value=1) - defined in Carbon\Carbon. Remove a day from the instance.
  • public static subDays(int $value) - defined in Carbon\Carbon. Remove days from the instance.
  • public static subHour(int $value=1) - defined in Carbon\Carbon. Remove an hour from the instance.
  • public static subHours(int $value) - defined in Carbon\Carbon. Remove hours from the instance.
  • public static subMinute(int $value=1) - defined in Carbon\Carbon. Remove a minute from the instance.
  • public static subMinutes(int $value) - defined in Carbon\Carbon. Remove minutes from the instance.
  • public static subMonth(int $value=1) - defined in Carbon\Carbon. Remove a month from the instance.
  • public static subMonthNoOverflow(int $value=1) - defined in Carbon\Carbon. Remove a month with no overflow from the instance.
  • public static subMonthWithOverflow(int $value=1) - defined in Carbon\Carbon. Remove a month from the instance.
  • public static subMonths(int $value) - defined in Carbon\Carbon. Remove months from the instance.
  • public static subMonthsNoOverflow(int $value) - defined in Carbon\Carbon. Remove months with no overflow from the instance.
  • public static subMonthsWithOverflow(int $value) - defined in Carbon\Carbon. Remove months from the instance.
  • public static subQuarter(int $value=1) - defined in Carbon\Carbon. Remove a quarter from the instance.
  • public static subQuarters(int $value) - defined in Carbon\Carbon. Remove quarters from the instance.
  • public static subRealHour(int $value=1) - defined in Carbon\Carbon. Remove an hour from the instance.
  • public static subRealHours(int $value) - defined in Carbon\Carbon. Remove hours from the instance using timestamp.
  • public static subRealMinute(int $value=1) - defined in Carbon\Carbon. Remove a minute from the instance using timestamp.
  • public static subRealMinutes(int $value=1) - defined in Carbon\Carbon. Remove a minute from the instance using timestamp.
  • public static subRealSecond(int $value=1) - defined in Carbon\Carbon. Remove a second from the instance using timestamp.
  • public static subRealSeconds(int $value) - defined in Carbon\Carbon. Remove seconds from the instance using timestamp.
  • public static subSecond(int $value=1) - defined in Carbon\Carbon. Remove a second from the instance.
  • public static subSeconds(int $value) - defined in Carbon\Carbon. Remove seconds from the instance.
  • public static subWeek(int $value=1) - defined in Carbon\Carbon. Remove a week from the instance.
  • public static subWeekday(int $value=1) - defined in Carbon\Carbon. Remove a weekday from the instance.
  • public static subWeekdays(int $value) - defined in Carbon\Carbon. Remove weekdays from the instance.
  • public static subWeeks(int $value) - defined in Carbon\Carbon. Remove weeks to the instance.
  • public static subYear(int $value=1) - defined in Carbon\Carbon. Remove a year from the instance.
  • public static subYearNoOverflow(int $value=1) - defined in Carbon\Carbon. Remove year from the instance with no month overflow.
  • public static subYearWithOverflow(int $value=1) - defined in Carbon\Carbon. Remove year from the instance.
  • public static subYears(int $value) - defined in Carbon\Carbon. Remove years from the instance.
  • public static subYearsNoOverflow(int $value) - defined in Carbon\Carbon. Remove years from the instance with no month overflow.
  • public static subYearsWithOverflow(int $value) - defined in Carbon\Carbon. Remove years from the instance.
  • public int timespan(Date $time=NULL, string|DateTimeZone $timezone=NULL) - defined in Jenssegers\Date\Date. Gets the timespan between this date and another date.
  • public static timestamp(int $value) - defined in Carbon\Carbon. Set the instance's timestamp.
  • public static timezone(DateTimeZone|string $value) - defined in Carbon\Carbon. Alias for setTimezone().
  • public array toArray() - defined in Carbon\Carbon. Get default array representation.
  • public string toAtomString() - defined in Carbon\Carbon. Format the instance as ATOM.
  • public string toCookieString() - defined in Carbon\Carbon. Format the instance as COOKIE.
  • public string toDateString() - defined in Carbon\Carbon. Format the instance as date.
  • public string toDateTimeString() - defined in Carbon\Carbon. Format the instance as date and time.
  • public string toDayDateTimeString() - defined in Carbon\Carbon. Format the instance with day, date and time.
  • public string toFormattedDateString() - defined in Carbon\Carbon. Format the instance as a readable date.
  • public string toIso8601String() - defined in Carbon\Carbon. Format the instance as ISO8601.
  • public string toIso8601ZuluString() - defined in Carbon\Carbon. Convert the instance to UTC and return as Zulu ISO8601.
  • public string toRfc1036String() - defined in Carbon\Carbon. Format the instance as RFC1036.
  • public string toRfc1123String() - defined in Carbon\Carbon. Format the instance as RFC1123.
  • public string toRfc2822String() - defined in Carbon\Carbon. Format the instance as RFC2822.
  • public string toRfc3339String() - defined in Carbon\Carbon. Format the instance as RFC3339.
  • public string toRfc7231String() - defined in Carbon\Carbon. Format the instance as RFC7231.
  • public string toRfc822String() - defined in Carbon\Carbon. Format the instance as RFC822.
  • public string toRfc850String() - defined in Carbon\Carbon. Format the instance as RFC850.
  • public string toRssString() - defined in Carbon\Carbon. Format the instance as RSS.
  • public string toTimeString() - defined in Carbon\Carbon. Format the instance as time.
  • public string toW3cString() - defined in Carbon\Carbon. Format the instance as W3C.
  • public static static today(DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance for today.
  • public static static tomorrow(DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance for tomorrow.
  • public static string translateTimeString(string $time) - defined in Jenssegers\Date\Date. Translate a locale based time string to its english equivalent.
  • public static tz(DateTimeZone|string $value) - defined in Carbon\Carbon. Alias for setTimezone().
  • public string until(Date $since=NULL) - defined in Jenssegers\Date\Date. Alias for diffForHumans.
  • public static void useMicrosecondsFallback(bool $microsecondsFallback=true) - defined in Carbon\Carbon. Add microseconds to now on PHP < 7.1 and 7.1.3 if set to true,
  • public static void useMonthsOverflow(bool $monthsOverflow=true) - defined in Carbon\Carbon. Indicates if months should be calculated with overflow.
  • public static void useYearsOverflow(bool $yearsOverflow=true) - defined in Carbon\Carbon. Indicates if years should be calculated with overflow.
  • public static year(int $value) - defined in Carbon\Carbon. Set the instance's year.
  • public static static yesterday(DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance for yesterday.

Protected methods

Show inherited protected methods

Inherited protected methods

  • protected static void expectDateTime(mixed $date, string|array $other=array()) - defined in Carbon\Carbon. Throws an exception if the given object is not a DateTime and does not implement DateTimeInterface.
  • protected static resolveCarbon(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL) - defined in Carbon\Carbon. Return the Carbon instance passed through, a now instance in the same timezone.
  • protected static DateTimeZone safeCreateDateTimeZone(DateTimeZone|string|int|null $object) - defined in Carbon\Carbon. Creates a DateTimeZone from a string, DateTimeZone or integer offset.
  • protected static Symfony\Component\Translation\TranslatorInterface translator() - defined in Carbon\Carbon. Initialize the translator instance if necessary.