Function __global->_compensate_for_dst_change
Definitions
sources/calendar.php
- We have just jumped a UTC-based date (i.e. timezoneless) forward by calendar units, compensate for any DST ramifications in the target timezone.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| &$hour | ?integer | Yes | No | required parameter | N/A | N/A | Current hour (null: no start time) |
| &$minute | ?integer | Yes | No | required parameter | N/A | N/A | Current minute (null: no start time) |
| $day_of_month | integer | No | No | required parameter | N/A | N/A | Current day |
| $month | integer | No | No | required parameter | N/A | N/A | Current month |
| $year | integer | No | No | required parameter | N/A | N/A | Current year |
| $timezone | ID_TEXT | No | No | required parameter | N/A | N/A | The timezone of the event |
| $do_timezone_conv | BINARY | No | No | required parameter | N/A | N/A | Whether the time should be converted to the viewer's own timezone. NOT ACTUALLY USED |
| $dif_day | integer | No | No | required parameter | N/A | N/A | Jump in days that just happened |
| $dif_month | integer | No | No | required parameter | N/A | N/A | Jump in month that just happened |
| $dif_year | integer | No | No | required parameter | N/A | N/A | Jump in year that just happened |
Preview
Code (PHP)
/**
* We have just jumped a UTC-based date (i.e. timezoneless) forward by calendar units, compensate for any DST ramifications in the target timezone.
*
* @param ?integer $hour Current hour (null: no start time)
* @param ?integer $minute Current minute (null: no start time)
* @param integer $day_of_month Current day
* @param integer $month Current month
* @param integer $year Current year
* @param ID_TEXT $timezone The timezone of the event
* @param BINARY $do_timezone_conv Whether the time should be converted to the viewer's own timezone. NOT ACTUALLY USED
* @param integer $dif_day Jump in days that just happened
* @param integer $dif_month Jump in month that just happened
* @param integer $dif_year Jump in year that just happened
*/
function _compensate_for_dst_change(?int &$hour, ?int &$minute, int $day_of_month, int $month, int $year, string $timezone, int $do_timezone_conv, int $dif_day, int $dif_month, int $dif_year)
* We have just jumped a UTC-based date (i.e. timezoneless) forward by calendar units, compensate for any DST ramifications in the target timezone.
*
* @param ?integer $hour Current hour (null: no start time)
* @param ?integer $minute Current minute (null: no start time)
* @param integer $day_of_month Current day
* @param integer $month Current month
* @param integer $year Current year
* @param ID_TEXT $timezone The timezone of the event
* @param BINARY $do_timezone_conv Whether the time should be converted to the viewer's own timezone. NOT ACTUALLY USED
* @param integer $dif_day Jump in days that just happened
* @param integer $dif_month Jump in month that just happened
* @param integer $dif_year Jump in year that just happened
*/
function _compensate_for_dst_change(?int &$hour, ?int &$minute, int $day_of_month, int $month, int $year, string $timezone, int $do_timezone_conv, int $dif_day, int $dif_month, int $dif_year)

