Skip to content

Releases: icecave/chrono

Version 2.0.0

25 Aug 05:00

Choose a tag to compare

  • [BC] Bump minimum PHP version to 7.2
  • [BC] Remove PackageInfo class
  • [FIX] Date::toTimeZone() now always returns a DateTime, even if "converting" to the same timezone

Version 1.0.4

25 Aug 05:00

Choose a tag to compare

  • [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

16 Feb 04:04

Choose a tag to compare

  • [IMPROVED] DateTime and TimeOfDay ISO string parsing now allows (but discards) partial-second information

Version 1.0.2

10 Nov 07:56

Choose a tag to compare

  • [FIXED] DateTime::fromNativeDateTime() correctly preserves DST flag when converting from timezones that use abbreviated names (e.g. PST, PDT, etc)

Version 1.0.1

20 Oct 07:04

Choose a tag to compare

Version 1.0.0

09 Sep 02:18

Choose a tag to compare

  • [NEW] Added convenience factory methods on Duration

Version 0.4.0

04 Mar 01:26

Choose a tag to compare

Version 0.4.0 Pre-release
Pre-release
  • [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

24 Jan 03:34

Choose a tag to compare

Version 0.3.0 Pre-release
Pre-release
  • [BC] Methods names on TimeInterface are now singular (ie, hour() vs hours())
  • [BC] Interval::isoStringWithDuration() is now more correctly named isoStringWithPeriod()
  • [FIXED] SystemClock::unixTime() now properly suspends when the clock is suspended
  • [IMPROVED] Period::resolveToInterval() and Duration::resolveToInterval() can now handle negative time spans
  • [NEW] Added ISO-8601 parsing to Period, Interval, Year and Month
  • [NEW] Added DateInterface::isoDayOfWeek() and numericDayOfWeek()
  • [NEW] Added methods for converting Period and Duration to/from PHP's DateInterval type
  • [NEW] Added ClockInterface::unixTimeAsFloat()
  • [NEW] Added ClockInterface::sleep() and sleepUntil()
  • [NEW] Added TimerInterface, Timer and ClockInterface::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

02 Jul 23:22

Choose a tag to compare

Version 0.2.0 Pre-release
Pre-release
  • [BC] Moved Duration and TimeSpanInterface into TimeSpan namespace
  • [BC] Removed AbstractDuration and DurationInterface
  • [BC] Renamed TimeSpanInterface::resolve() to resolveToSeconds()
  • [IMPROVED] TimePointInterface::add() and subtract() now accept raw seconds as integer, as well as a time span
  • [FIXED] Added missing time zone support to Date::fromNativeDateTime() and nativeDateTime()
  • [NEW] Implemented Period, a model of TimeSpanInterface
  • [NEW] Added TimeSpanInterface::inverse(), isEmpty(), __toString() and resolveTo***() methods
  • [NEW] Added TimePointInterface::differenceAsSeconds() and differenceAsPeriod()
  • [NEW] Added is[Not]EqualTo() and is[Less/Greater]Than[OrEqualTo]() to all types with compare()
  • [NEW] Added Year::fromTimePoint() and Month::fromTimePoint()

Version 0.1.1

02 Jul 23:22

Choose a tag to compare

Version 0.1.1 Pre-release
Pre-release
  • [FIXED] Fixed inverted comparison of time zone in DateTime/Date/TimeOfDay::compare()