ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Change the timezone (and only the timezone) of php's 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.
| |||
__invoke ($from) | |||
Transformations should be callable.This MUST do the same as transform.
| |||
![]() | |||
applyTo (Result $data) | |||
Perform the transformation and reify possible failures. More... | |||
Private Attributes | |
$timezone | |
Change the timezone (and only the timezone) of php's WITHOUT changing the date-value.
This will effectively be another point in time and space.
Definition at line 14 of file ChangeTimezone.php.
ILIAS\Refinery\DateTime\ChangeTimezone::__construct | ( | string | $timezone | ) |
ILIAS\Refinery\DateTime\ChangeTimezone::__invoke | ( | $from | ) |
Transformations should be callable.This MUST do the same as transform.
Implements ILIAS\Refinery\Transformation.
Definition at line 52 of file ChangeTimezone.php.
References ILIAS\Refinery\DateTime\ChangeTimezone\transform().
ILIAS\Refinery\DateTime\ChangeTimezone::transform | ( | $from | ) |
Perform the transformation.Please use this for transformations. It's more performant than calling invoke.
Implements ILIAS\Refinery\Transformation.
Definition at line 38 of file ChangeTimezone.php.
Referenced by ILIAS\Refinery\DateTime\ChangeTimezone\__invoke().
|
private |
Definition at line 21 of file ChangeTimezone.php.