W3cubDocs

/Symfony 4.1

BaseDateTimeTransformer

abstract class BaseDateTimeTransformer implements DataTransformerInterface

Properties

static protected $formats
protected $inputTimezone
protected $outputTimezone

Methods

__construct(string $inputTimezone = null, string $outputTimezone = null)

Details

__construct(string $inputTimezone = null, string $outputTimezone = null)

Parameters

string $inputTimezone The name of the input timezone
string $outputTimezone The name of the output timezone

Exceptions

InvalidArgumentException if a timezone is not valid