The implementation provides helpers to handle weeks but only days are saved. Weeks are calculated based on the total days of the current instance.
Inheritance: extends DateInterva\DateInterval
Exemplo n.º 1
0
 /**
  * Get the difference in hours using a filter callable
  *
  * @param callable $callback The callback to use for filtering.
  * @param ChronosInterface|null $dt The instance to difference from.
  * @param bool $abs Get the absolute of the difference
  * @return int
  */
 public function diffInHoursFiltered(callable $callback, ChronosInterface $dt = null, $abs = true)
 {
     return $this->diffFiltered(ChronosInterval::hour(), $callback, $dt, $abs);
 }