final | |
---|---|
implements |
DateFormatterInterface |
Formats and parses dates, optionally applying a preferred timezone to both operations
Methods | ||
---|---|---|
public
|
__construct(
string $format = DateTimeInterface::ATOM,
DateTimeZone|string|null $timezone = null,
DateParserInterface ...$parsers,
)
|
# |
public
|
format(DateTimeInterface $date): string
|
# |
public
|
parse(string $value): ?DateTimeImmutable
|
# |