Function __global->find_timezone_end_minute_in_utc

Definitions

sources/calendar.php

  • Find last minute in day for a timezone. Usually 59, but some timezones have 30 min offsets.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$timezone ID_TEXT No No required parameter N/A N/A The timezone of the event
$year ?integer No No required parameter N/A N/A Year (null: N/A)
$month ?integer No No required parameter N/A N/A Month (null: N/A)
$day ?integer No No required parameter N/A N/A Day (null: N/A)
$monthly_spec_type ID_TEXT No No required parameter day_of_month day_of_month_backwards dow_of_month dow_of_month_backwards N/A In-month specification type

Returns

  • Minute (null: N/A)
  • Type: ?integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find last minute in day for a timezone. Usually 59, but some timezones have 30 min offsets.
 *
 * @param  ID_TEXT $timezone The timezone of the event
 * @param  ?integer $year Year (null: N/A)
 * @param  ?integer $month Month (null: N/A)
 * @param  ?integer $day Day (null: N/A)
 * @param  ID_TEXT $monthly_spec_type In-month specification type
 * @set day_of_month day_of_month_backwards dow_of_month dow_of_month_backwards
 * @return ?integer Minute (null: N/A)
 */

function find_timezone_end_minute_in_utc(string $timezone, ?int $year, ?int $month, ?int $day, string $monthly_spec_type) : ?int