On this page
BaseDateTimeTransformer
class BaseDateTimeTransformer implements DataTransformerInterface
Methods
__construct(string $inputTimezone = null, string $outputTimezone = null) Constructor. |
Details
__construct(string $inputTimezone = null, string $outputTimezone = null)
Constructor.
Parameters
string | $inputTimezone | The name of the input timezone |
string | $outputTimezone | The name of the output timezone |
Exceptions
UnexpectedTypeException | if a timezone is not a string |
InvalidArgumentException | if a timezone is not valid |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Form/Extension/Core/DataTransformer/BaseDateTimeTransformer.html