ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Change the timezone (and only the timezone) of php's \DateTimeImmutable WITHOUT changing the date-value. More...
Public Member Functions | ||||||
__construct (string $timezone) | ||||||
transform ($from) | ||||||
Perform the transformation.Please use this for transformations. It's more performant than calling invoke.
InvalidArgumentException if the argument could not be transformed
| ||||||
![]() | ||||||
transform ($from) | ||||||
Perform the transformation. More... | ||||||
applyTo (Result $data) | ||||||
Perform the transformation and reify possible failures. More... | ||||||
__invoke ($from) | ||||||
Transformations should be callable. More... | ||||||
Private Attributes | |
$timezone | |
Change the timezone (and only the timezone) of php's \DateTimeImmutable WITHOUT changing the date-value.
This will effectively be another point in time and space.
Definition at line 15 of file ChangeTimezone.php.
ILIAS\Refinery\DateTime\ChangeTimezone::__construct | ( | string | $timezone | ) |
string | $timezone | |
Factory | $factory |
Definition at line 29 of file ChangeTimezone.php.
References ILIAS\Refinery\DateTime\ChangeTimezone\$timezone.
ILIAS\Refinery\DateTime\ChangeTimezone::transform | ( | $from | ) |
Perform the transformation.Please use this for transformations. It's more performant than calling invoke.
InvalidArgumentException if the argument could not be transformed
mixed | $from |
Implements ILIAS\Refinery\Transformation.
Definition at line 40 of file ChangeTimezone.php.
|
private |
Definition at line 23 of file ChangeTimezone.php.
Referenced by ILIAS\Refinery\DateTime\ChangeTimezone\__construct().