Releases: icecave/chrono
Releases · icecave/chrono
Version 2.0.0
Version 1.0.4
- [IMPROVED] Added support for partial second parsing in internal class
Iso8604, in preparation for adding partial-second support to the public interface
Version 1.0.3
- [IMPROVED]
DateTimeandTimeOfDayISO string parsing now allows (but discards) partial-second information
Version 1.0.2
- [FIXED]
DateTime::fromNativeDateTime()correctly preserves DST flag when converting from timezones that use abbreviated names (e.g. PST, PDT, etc)
Version 1.0.1
- [IMPROVED] Allow either version 2.* or 3.* of icecave/isolator
Version 1.0.0
- [NEW] Added convenience factory methods on
Duration
Version 0.4.0
- [NEW] Added
TestClock, a clock implementation that can be manipulated manually to ease testing of time-dependent code - [IMPROVED] Updated autoloader to PSR-4
Version 0.3.0
- [BC] Methods names on
TimeInterfaceare now singular (ie,hour()vshours()) - [BC]
Interval::isoStringWithDuration()is now more correctly namedisoStringWithPeriod() - [FIXED]
SystemClock::unixTime()now properly suspends when the clock is suspended - [IMPROVED]
Period::resolveToInterval()andDuration::resolveToInterval()can now handle negative time spans - [NEW] Added ISO-8601 parsing to
Period,Interval,YearandMonth - [NEW] Added
DateInterface::isoDayOfWeek()andnumericDayOfWeek() - [NEW] Added methods for converting
PeriodandDurationto/from PHP'sDateIntervaltype - [NEW] Added
ClockInterface::unixTimeAsFloat() - [NEW] Added
ClockInterface::sleep()andsleepUntil() - [NEW] Added
TimerInterface,TimerandClockInterface::createTimer() - [NEW] Implemented several iterator types for iterating over time spans (see #3)
- [NEW] Most objects can now be compared using Parity
Version 0.2.0
- [BC] Moved
DurationandTimeSpanInterfaceintoTimeSpannamespace - [BC] Removed
AbstractDurationandDurationInterface - [BC] Renamed
TimeSpanInterface::resolve()toresolveToSeconds() - [IMPROVED]
TimePointInterface::add()andsubtract()now accept raw seconds as integer, as well as a time span - [FIXED] Added missing time zone support to
Date::fromNativeDateTime()andnativeDateTime() - [NEW] Implemented
Period, a model ofTimeSpanInterface - [NEW] Added
TimeSpanInterface::inverse(),isEmpty(),__toString()andresolveTo***()methods - [NEW] Added
TimePointInterface::differenceAsSeconds()anddifferenceAsPeriod() - [NEW] Added
is[Not]EqualTo()andis[Less/Greater]Than[OrEqualTo]()to all types withcompare() - [NEW] Added
Year::fromTimePoint()andMonth::fromTimePoint()
Version 0.1.1
- [FIXED] Fixed inverted comparison of time zone in
DateTime/Date/TimeOfDay::compare()