Skip to content

cDateStrategySimpleInterval::GetPredecessor()

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

Method GetPredecessor( )

 public   \libdatephp\cDate libdatephp\cDateStrategy::GetPredecessor(\libdatephp\cDate $obj_date, \libdatephp\cDate $dt_prev)

The method GetPredecessor( ) returns the previous date before $obj_date, which fits to the specifications

Arguments

  • $obj_date libdatephp\cDate - <p>a cDate object, where the calculation shoudl start</p>
  • $dt_prev libdatephp\cDate - <p>a cDate object, which should be the starting point for the next calculation</p>

Returns

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

See also

Clone this wiki locally