Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToLocalizedStringTransformer
Transforms between a normalized time and a localized time string
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class DateTimeToLocalizedStringTransformer
extends BaseDateTimeTransformer
{
- // members
- private $dateFormat;
- private $timeFormat;
- private $pattern;
- private $calendar;
- // Inherited members from BaseDateTimeTransformer
- protected array $formats;
- protected $inputTimezone;
- protected $outputTimezone;
- // methods
- public void __construct()
- public string|array transform()
- public DateTime reverseTransform()
- protected IntlDateFormatter getIntlDateFormatter()
- // Inherited methods from BaseDateTimeTransformer
- public void __construct()
Hierarchy
Members
private
- $calendar
- $dateFormat
- $pattern
- $timeFormat
protected
- $formats
- $inputTimezone
- $outputTimezone
Methods
protected
- getIntlDateFormatter() — Returns a preconfigured IntlDateFormatter instance
public
- __construct() — Constructor.
- reverseTransform() — Transforms a localized date string/array into a normalized date.
- transform() — Transforms a normalized date into a localized date string/array.