TIC\FormBundle\Form\DataTransformer\StringToTimeTransformer::__construct
Transforms a \DateTime instance to a string.
Signature
public function __construct([string
$inputTimezone = NULL,
[string
$outputTimezone = NULL,
[string
$format = 'H:i:s']]] )
Parameters
$inputTimezone— string- The name of the input timezone
$outputTimezone— string- The name of the output timezone
$format— string- The date format
Errors/Exceptions
-
UnexpectedTypeException - if a timezone is not a string