Skip to content

cDateStrategySimpleInterval::GetFollower()

Rainer Stötter edited this page May 9, 2017 · 15 revisions

Method GetFollower( )

 public   \libdatephp\cDate libdatephp\cDateStrategy::GetFollower(\libdatephp\cDate $date, \libdatephp\cDate $dt_next, integer $direction)

The method GetFollower( ) returns the next date AFTER $date, which fits to the specifications. $date itself will not be taken into consideration.

Arguments

  • $date libdatephp\cDate - <p>a cDate object, which is the starting point for the next calculation</p>
  • $dt_next libdatephp\cDate - <p>GetFollower returns a cDate object, which is the starting point for the next calculation. ie If we are moving backwards and scheduling forward, then a correction is necessary</p>
  • $direction integer - <p>the constant, which indicates the search direction. It defaults to DIRECTION_FORWARD</p>

Returns

\libdatephp\cDate cDate object with the next fitting date or null, if no fitting date could be found ( overflow, IsUnderflow)

See also

Clone this wiki locally