ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
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) | |
@inheritDoc More... | |
![]() | |
transform ($from) | |
Perform the transformation. More... | |
applyTo (Result $result) | |
Perform the transformation and reify possible failures. More... | |
__invoke ($from) | |
Transformations should be callable. More... | |
Private Attributes | |
DateTimeZone | $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 34 of file ChangeTimezone.php.
ILIAS\Refinery\DateTime\ChangeTimezone::__construct | ( | string | $timezone | ) |
Definition at line 41 of file ChangeTimezone.php.
References ILIAS\Refinery\DateTime\ChangeTimezone\$timezone.
ILIAS\Refinery\DateTime\ChangeTimezone::transform | ( | $from | ) |
@inheritDoc
Implements ILIAS\Refinery\Transformation.
Definition at line 52 of file ChangeTimezone.php.
|
private |
Definition at line 39 of file ChangeTimezone.php.
Referenced by ILIAS\Refinery\DateTime\ChangeTimezone\__construct().