final | |
---|---|
extends |
AbstractUtility |
Work with date and time values, timezones and intervals
Methods | ||
---|---|---|
public
static
|
immutable(DateTimeInterface $datetime): DateTimeImmutable
|
# |
public
static
|
timezone(DateTimeZone|string|null $timezone = null): DateTimeZone
|
# |
public
static
|
duration(DateInterval|string $interval): int
|
# |
public
static
|
maybeSetTimezone(DateTimeInterface $datetime, DateTimeZone|string|null $timezone = null): DateTimeImmutable
|
# |