implements |
BackedEnum |
---|
Cases | |
---|---|
Microsecond = 'microsecond'
|
# |
Millisecond = 'millisecond'
|
# |
Second = 'second'
|
# |
Minute = 'minute'
|
# |
Hour = 'hour'
|
# |
Day = 'day'
|
# |
Week = 'week'
|
# |
Month = 'month'
|
# |
Quarter = 'quarter'
|
# |
Year = 'year'
|
# |
Decade = 'decade'
|
# |
Century = 'century'
|
# |
Millennium = 'millennium'
|
# |
Methods | ||
---|---|---|
public
static
|
toName(self|string $unit): string
|
# |
public
static
|
fromName(string $name, ?string $locale = null): self
|
# |
public
|
singular(?string $locale = null): string
|
# |
public
|
plural(?string $locale = null): string
|
# |
public
|
interval(int|float $value = 1): CarbonInterval
|
# |
public
|
locale(string $locale): CarbonInterval
|
# |
public
|
toPeriod(...$params): CarbonPeriod
|
# |
public
|
stepBy(mixed $interval, Unit|string|null $unit = null): CarbonPeriod
|
# |