DateTimeToRfc3339Transformer
DateTimeToRfc3339Transformer
class DateTimeToRfc3339Transformer extends BaseDateTimeTransformer
Methods
__construct(string $inputTimezone = null, string $outputTimezone = null) Constructor. | from BaseDateTimeTransformer | |
mixed | transform(DateTimeInterface $dateTime) Transforms a normalized date into a localized date. | |
mixed | reverseTransform(string $rfc3339) Transforms a formatted string following RFC 3339 into a normalized date. |
Details
__construct(string $inputTimezone = null, string $outputTimezone = null)
Constructor.
mixed transform(DateTimeInterface $dateTime)
Transforms a normalized date into a localized date.
mixed reverseTransform(string $rfc3339)
Transforms a formatted string following RFC 3339 into a normalized date.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToRfc3339Transformer.html