Logo
  • Getting Started
    • Introduction
  • CLI Application
    • index
  • Calendar Library
    • index
    • version 1.x
    • version 1.0
  • Calendar Twig Library
    • index
    • version 1.x
  • Calendar Doctrine Library
    • index
    • version 1.x
  • Retry Library
    • Index
    • version 1.x
  • Rate Limiter Library
    • Index
    • version 1.x
  • Sleep Library
    • Index
    • version 1.x
    • version 1.0
  • Calendar Holidays Library
    • index
    • version 1.x
  • Calendar Holidays Yasumi Library
    • index
    • version 1.x
  • Business Hours Library
    • index
    • version 1.x
  • Symfony Bundle
    • index
    • version 1.x
  1. Home
  2. Documentation
  3. Forum
Install

Aeon\Calendar\Gregorian\DateTimeIterator

View at GitHub ( 1.x )
Introduction

Class synopis

class final DateTimeIterator implements \Iterator, \Traversable
{
public __construct ( DateTime $start , DateTime $end , Unit $timeUnit )
public isForward ( void ) : bool
public unit ( void ) : Unit
public start ( void ) : DateTime
public end ( void ) : DateTime
public current ( void ) : DateTime
public next ( void ) : DateTime
public hasNext ( void ) : bool
public key ( void ) : int
public isFirst ( void ) : bool
public valid ( void ) : bool
public rewind ( void ) : void
}
Table of Contents

  • DateTimeIterator::__construct
  • DateTimeIterator::isForward
  • DateTimeIterator::unit
  • DateTimeIterator::start
  • DateTimeIterator::end
  • DateTimeIterator::current
  • DateTimeIterator::next
  • DateTimeIterator::hasNext
  • DateTimeIterator::key
  • DateTimeIterator::isFirst
  • DateTimeIterator::valid
  • DateTimeIterator::rewind
Calendar - 1.x
  • TimeUnit
  • Stopwatch
  • Months
  • DateTime
  • Day
  • Month
  • TimePeriod
  • Time
  • TimeOffset
  • Interval
  • MonthsIterator
  • DateTimeIterator
  • Year
  • GregorianCalendarStub
  • LeapSeconds
  • Years
  • TimePeriodsSort
  • MonthDays
  • TimePeriods
  • Quarter
  • YearMonths
  • GregorianCalendar
  • DaysIterator
  • Calendar
  • TimeZone
  • TimePeriodsIterator
  • Days
  • LeapSecond
  • WeekDay
  • DateTimeIntervalIterator
  • TimeEpoch
  • HRTime
  • Unit
  • RelativeTimeUnit
  • InvalidArgumentException
  • Exception
  • PHPCalculator
  • Calculator
  • BCMathCalculator
  • PreciseCalculator
  • InvalidTypeException
  • Exception
Edit this page

Aeon is a set of libraries that makes easier to work with PHP Date & Time in elegant Object Oriented way.

  • aeon-php/calendar
  • aeon-php/calendar-doctrine
  • aeon-php/calendar-holidays
  • aeon-php/calendar-holidays-yasumi
  • aeon-php/cli
  • aeon-php/business-hours
  • aeon-php/process
  • aeon-php/retry
  • aeon-php/rate-limiter
  • aeon-php/calendar-twig