Constructor
DayIterator
__construct
(integer $from, integer $to)
-
integer
$from: unix timestamp - hour, min and sec should be equal to 0
-
integer
$to: unix timestamp - hour, min and sec should be equal to 0
Redefined in descendants as:
mixed
current
()
Implementation of:
- Iterator::current
Computes total number of days
integer
getDiffDays
()
integer
getFrom
()
Redefined in descendants as:
integer
getTo
()
Redefined in descendants as:
check if given $time is inside given range
bool
isBetween
(integer $time)
-
integer
$time: unix timestamp - hour, min and sec should be equal to 0
integer
key
()
Implementation of:
- Iterator::key
void
next
()
Implementation of:
- Iterator::next
void
rewind
()
Implementation of:
- Iterator::rewind
bool
valid
()
Implementation of:
- Iterator::valid