Skip to content

cDateStrategyMonthlyFixed::FirstWeekday()

Rainer Stötter edited this page May 9, 2017 · 1 revision

Method FirstWeekday( )

 private   mixed libdatephp\cDateStrategyMonthlyFixed::FirstWeekday(integer $w, integer $month, integer $year, integer $wd, integer $direction, \libdatephp\cDateISO $dt_start)

The method FirstWeekday( ) tries to find the first day of week, which comes after / before ( depending on $direction ) $dt_start.

Arguments

  • $w integer - <p>the week of month, which can be changed</p>
  • $month integer - <p>the month, which can be changed</p>
  • $year integer - <p>the year, which can be changed</p>
  • $wd integer - <p>the day of week, which can be changed</p>
  • $direction integer - <p>the direction - DIRECTION_FORWARD or DIRECTION_BACKWARD</p>
  • $dt_start libdatephp\cDateISO - <p>dt_start is the date, where to start</p>

Clone this wiki locally