├── .gitignore ├── .php_cs ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── composer.json ├── composer.lock ├── phpunit.xml ├── src ├── AbstractTimePoint.php ├── Clock │ ├── AbstractClock.php │ ├── ClockInterface.php │ ├── ScopedSuspension.php │ ├── SuspendableClockInterface.php │ ├── SystemClock.php │ ├── TestClock.php │ └── TestClockInterface.php ├── CommonInterface.php ├── Date.php ├── DateInterface.php ├── DateTime.php ├── Detail │ ├── Calendar.php │ ├── Iso8601.php │ ├── Normalizer.php │ └── Ordinal.php ├── Format │ ├── DefaultFormatter.php │ ├── FormattableInterface.php │ └── FormatterInterface.php ├── Interval │ ├── AbstractInterval.php │ ├── Interval.php │ ├── IntervalInterface.php │ ├── Month.php │ └── Year.php ├── Iso8601Interface.php ├── Iterator │ ├── DayIntervalIterator.php │ ├── DayIterator.php │ ├── HourIntervalIterator.php │ ├── HourIterator.php │ ├── IntervalIterator.php │ ├── MinuteIntervalIterator.php │ ├── MinuteIterator.php │ ├── MonthIntervalIterator.php │ ├── MonthIterator.php │ ├── SecondIntervalIterator.php │ ├── SecondIterator.php │ ├── TimeSpanIterator.php │ ├── YearIntervalIterator.php │ └── YearIterator.php ├── TimeInterface.php ├── TimeOfDay.php ├── TimePointInterface.php ├── TimeSpan │ ├── Duration.php │ ├── Period.php │ └── TimeSpanInterface.php ├── TimeZone.php └── Timer │ ├── Timer.php │ └── TimerInterface.php └── test └── suite ├── AbstractTimePointTest.php ├── Clock ├── AbstractClockTest.php ├── ScopedSuspensionTest.php ├── SystemClockTest.php └── TestClockTest.php ├── DateTest.php ├── DateTimeTest.php ├── Detail ├── CalendarTest.php ├── Iso8601Test.php ├── NormalizerTest.php └── OrdinalTest.php ├── Format └── DefaultFormatterTest.php ├── Interval ├── AbstractIntervalTest.php ├── IntervalTest.php ├── MonthTest.php └── YearTest.php ├── Iterator ├── DayIntervalIteratorTest.php ├── DayIteratorTest.php ├── HourIntervalIteratorTest.php ├── HourIteratorTest.php ├── IntervalIteratorTest.php ├── MinuteIntervalIteratorTest.php ├── MinuteIteratorTest.php ├── MonthIntervalIteratorTest.php ├── MonthIteratorTest.php ├── SecondIntervalIteratorTest.php ├── SecondIteratorTest.php ├── TimeSpanIteratorTest.php ├── YearIntervalIteratorTest.php └── YearIteratorTest.php ├── TimeOfDayTest.php ├── TimeSpan ├── DurationTest.php └── PeriodTest.php ├── TimeZoneTest.php └── Timer └── TimerTest.php /.gitignore: -------------------------------------------------------------------------------- 1 | /artifacts/ 2 | /vendor/ 3 | .phpunit.result.cache 4 | -------------------------------------------------------------------------------- /.php_cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/.php_cs -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/composer.lock -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/AbstractTimePoint.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/AbstractTimePoint.php -------------------------------------------------------------------------------- /src/Clock/AbstractClock.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Clock/AbstractClock.php -------------------------------------------------------------------------------- /src/Clock/ClockInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Clock/ClockInterface.php -------------------------------------------------------------------------------- /src/Clock/ScopedSuspension.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Clock/ScopedSuspension.php -------------------------------------------------------------------------------- /src/Clock/SuspendableClockInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Clock/SuspendableClockInterface.php -------------------------------------------------------------------------------- /src/Clock/SystemClock.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Clock/SystemClock.php -------------------------------------------------------------------------------- /src/Clock/TestClock.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Clock/TestClock.php -------------------------------------------------------------------------------- /src/Clock/TestClockInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Clock/TestClockInterface.php -------------------------------------------------------------------------------- /src/CommonInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/CommonInterface.php -------------------------------------------------------------------------------- /src/Date.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Date.php -------------------------------------------------------------------------------- /src/DateInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/DateInterface.php -------------------------------------------------------------------------------- /src/DateTime.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/DateTime.php -------------------------------------------------------------------------------- /src/Detail/Calendar.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Detail/Calendar.php -------------------------------------------------------------------------------- /src/Detail/Iso8601.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Detail/Iso8601.php -------------------------------------------------------------------------------- /src/Detail/Normalizer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Detail/Normalizer.php -------------------------------------------------------------------------------- /src/Detail/Ordinal.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Detail/Ordinal.php -------------------------------------------------------------------------------- /src/Format/DefaultFormatter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Format/DefaultFormatter.php -------------------------------------------------------------------------------- /src/Format/FormattableInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Format/FormattableInterface.php -------------------------------------------------------------------------------- /src/Format/FormatterInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Format/FormatterInterface.php -------------------------------------------------------------------------------- /src/Interval/AbstractInterval.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Interval/AbstractInterval.php -------------------------------------------------------------------------------- /src/Interval/Interval.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Interval/Interval.php -------------------------------------------------------------------------------- /src/Interval/IntervalInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Interval/IntervalInterface.php -------------------------------------------------------------------------------- /src/Interval/Month.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Interval/Month.php -------------------------------------------------------------------------------- /src/Interval/Year.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Interval/Year.php -------------------------------------------------------------------------------- /src/Iso8601Interface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iso8601Interface.php -------------------------------------------------------------------------------- /src/Iterator/DayIntervalIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/DayIntervalIterator.php -------------------------------------------------------------------------------- /src/Iterator/DayIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/DayIterator.php -------------------------------------------------------------------------------- /src/Iterator/HourIntervalIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/HourIntervalIterator.php -------------------------------------------------------------------------------- /src/Iterator/HourIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/HourIterator.php -------------------------------------------------------------------------------- /src/Iterator/IntervalIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/IntervalIterator.php -------------------------------------------------------------------------------- /src/Iterator/MinuteIntervalIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/MinuteIntervalIterator.php -------------------------------------------------------------------------------- /src/Iterator/MinuteIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/MinuteIterator.php -------------------------------------------------------------------------------- /src/Iterator/MonthIntervalIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/MonthIntervalIterator.php -------------------------------------------------------------------------------- /src/Iterator/MonthIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/MonthIterator.php -------------------------------------------------------------------------------- /src/Iterator/SecondIntervalIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/SecondIntervalIterator.php -------------------------------------------------------------------------------- /src/Iterator/SecondIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/SecondIterator.php -------------------------------------------------------------------------------- /src/Iterator/TimeSpanIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/TimeSpanIterator.php -------------------------------------------------------------------------------- /src/Iterator/YearIntervalIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/YearIntervalIterator.php -------------------------------------------------------------------------------- /src/Iterator/YearIterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Iterator/YearIterator.php -------------------------------------------------------------------------------- /src/TimeInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/TimeInterface.php -------------------------------------------------------------------------------- /src/TimeOfDay.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/TimeOfDay.php -------------------------------------------------------------------------------- /src/TimePointInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/TimePointInterface.php -------------------------------------------------------------------------------- /src/TimeSpan/Duration.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/TimeSpan/Duration.php -------------------------------------------------------------------------------- /src/TimeSpan/Period.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/TimeSpan/Period.php -------------------------------------------------------------------------------- /src/TimeSpan/TimeSpanInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/TimeSpan/TimeSpanInterface.php -------------------------------------------------------------------------------- /src/TimeZone.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/TimeZone.php -------------------------------------------------------------------------------- /src/Timer/Timer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Timer/Timer.php -------------------------------------------------------------------------------- /src/Timer/TimerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/src/Timer/TimerInterface.php -------------------------------------------------------------------------------- /test/suite/AbstractTimePointTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/AbstractTimePointTest.php -------------------------------------------------------------------------------- /test/suite/Clock/AbstractClockTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Clock/AbstractClockTest.php -------------------------------------------------------------------------------- /test/suite/Clock/ScopedSuspensionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Clock/ScopedSuspensionTest.php -------------------------------------------------------------------------------- /test/suite/Clock/SystemClockTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Clock/SystemClockTest.php -------------------------------------------------------------------------------- /test/suite/Clock/TestClockTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Clock/TestClockTest.php -------------------------------------------------------------------------------- /test/suite/DateTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/DateTest.php -------------------------------------------------------------------------------- /test/suite/DateTimeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/DateTimeTest.php -------------------------------------------------------------------------------- /test/suite/Detail/CalendarTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Detail/CalendarTest.php -------------------------------------------------------------------------------- /test/suite/Detail/Iso8601Test.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Detail/Iso8601Test.php -------------------------------------------------------------------------------- /test/suite/Detail/NormalizerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Detail/NormalizerTest.php -------------------------------------------------------------------------------- /test/suite/Detail/OrdinalTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Detail/OrdinalTest.php -------------------------------------------------------------------------------- /test/suite/Format/DefaultFormatterTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Format/DefaultFormatterTest.php -------------------------------------------------------------------------------- /test/suite/Interval/AbstractIntervalTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Interval/AbstractIntervalTest.php -------------------------------------------------------------------------------- /test/suite/Interval/IntervalTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Interval/IntervalTest.php -------------------------------------------------------------------------------- /test/suite/Interval/MonthTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Interval/MonthTest.php -------------------------------------------------------------------------------- /test/suite/Interval/YearTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Interval/YearTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/DayIntervalIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/DayIntervalIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/DayIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/DayIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/HourIntervalIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/HourIntervalIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/HourIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/HourIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/IntervalIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/IntervalIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/MinuteIntervalIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/MinuteIntervalIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/MinuteIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/MinuteIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/MonthIntervalIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/MonthIntervalIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/MonthIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/MonthIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/SecondIntervalIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/SecondIntervalIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/SecondIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/SecondIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/TimeSpanIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/TimeSpanIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/YearIntervalIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/YearIntervalIteratorTest.php -------------------------------------------------------------------------------- /test/suite/Iterator/YearIteratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Iterator/YearIteratorTest.php -------------------------------------------------------------------------------- /test/suite/TimeOfDayTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/TimeOfDayTest.php -------------------------------------------------------------------------------- /test/suite/TimeSpan/DurationTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/TimeSpan/DurationTest.php -------------------------------------------------------------------------------- /test/suite/TimeSpan/PeriodTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/TimeSpan/PeriodTest.php -------------------------------------------------------------------------------- /test/suite/TimeZoneTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/TimeZoneTest.php -------------------------------------------------------------------------------- /test/suite/Timer/TimerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icecave/chrono/HEAD/test/suite/Timer/TimerTest.php --------------------------------------------------------------------------------