mediatekformation

BaseDateTimeTransformer
in package
implements DataTransformerInterface

Interfaces, Classes, Traits and Enums

DataTransformerInterface
Transforms a value between different representations.

Table of Contents

$formats  : mixed
$inputTimezone  : mixed
$outputTimezone  : mixed
__construct()  : mixed

Properties

$formats

protected static mixed $formats = [\IntlDateFormatter::NONE, \IntlDateFormatter::FULL, \IntlDateFormatter::LONG, \IntlDateFormatter::MEDIUM, \IntlDateFormatter::SHORT]

Methods

__construct()

public __construct([string|null $inputTimezone = null ][, string|null $outputTimezone = null ]) : mixed
Parameters
$inputTimezone : string|null = null

The name of the input timezone

$outputTimezone : string|null = null

The name of the output timezone

Tags
throws
InvalidArgumentException

if a timezone is not valid

Return values
mixed

Search results