Skip to content

cDateStrategyWeekly::AdjustedUnderOverflow()

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

Method AdjustedUnderOverflow( )

 public   mixed libdatephp\cDateStrategy::AdjustedUnderOverflow(\libdatephp\cDate $date_test, integer $direction)

The method AdjustedUnderOverflow( ) adjusts the cDate $date_test, when it is not inside the boundaries of the specifications of the actual strategy.

If no adjustment is possible ( overflow and DIRECTION_FORWARD or underflow and DIRECTION_BACKWARD ), then $date_test is set to null

Arguments

  • $date_test libdatephp\cDate - <p>the date, which should be adjusted</p>
  • $direction integer - <p>the actual direction; defaults to DIRECTION_FORWARD</p>

See also

Clone this wiki locally