Function __global->find_abstract_day

Definitions

sources/calendar.php

  • Given a calendar day of month, work out the day of the month within the specified encoding.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$year integer No No required parameter N/A N/A The concrete year
$month integer No No required parameter N/A N/A The concrete month
$day_of_month integer No No required parameter N/A N/A The concrete day of month
$monthly_spec_type ID_TEXT No No required parameter N/A N/A In-month specification type

Returns

  • Concrete day
  • Type: integer
  • Set: day_of_month day_of_month_backwards dow_of_month dow_of_month_backwards
  • Range: N/A

Preview

Code (PHP)

/**
 * Given a calendar day of month, work out the day of the month within the specified encoding.
 *
 * @param  integer $year The concrete year
 * @param  integer $month The concrete month
 * @param  integer $day_of_month The concrete day of month
 * @param  ID_TEXT $monthly_spec_type In-month specification type
 * @return integer Concrete day
 * @set day_of_month day_of_month_backwards dow_of_month dow_of_month_backwards
 */

function find_abstract_day(int $year, int $month, int $day_of_month, string $monthly_spec_type) : int