Month
: int
in package
Table of Contents
Cases
- April = 4
- August = 8
- December = 12
- February = 2
- January = 1
- July = 7
- June = 6
- March = 3
- May = 5
- November = 11
- October = 10
- September = 9
Methods
- fromName() : self
- fromNumber() : self
- int() : int|null
- locale() : CarbonImmutable
- ofTheYear() : CarbonImmutable
Cases
January
February
March
April
May
June
July
August
September
October
November
December
Methods
fromName()
public
static fromName(string $name[, string|null $locale = null ]) : self
Parameters
- $name : string
- $locale : string|null = null
Return values
selffromNumber()
public
static fromNumber(int $number) : self
Parameters
- $number : int
Return values
selfint()
public
static int(self|int|null $value) : int|null
Parameters
- $value : self|int|null
Return values
int|nulllocale()
public
locale(string $locale[, CarbonImmutable|null $now = null ]) : CarbonImmutable
Parameters
- $locale : string
- $now : CarbonImmutable|null = null
Return values
CarbonImmutableofTheYear()
public
ofTheYear([CarbonImmutable|int|null $now = null ]) : CarbonImmutable
Parameters
- $now : CarbonImmutable|int|null = null