0.4.0
💥 Breaking changes
- Minimum PHP version is now 7.4
TimeZoneOffset
does not allow seconds anymore (#35):TimeZoneOffset::of()
's$seconds
parameter is removedTimeZoneOffset::ofTotalSeconds()
now throws if the number of seconds is not a multiple of60
IsoParsers::timeZoneOffset()
does not allow seconds in timezone offset anymore; this affects not onlyTimeZoneOffset:parse()
but alsoZonedDateTime::parse()
🔧 Fix
- Fixed return type of
TimeZoneRegion::parse()
(#38) Thanks to @adrianguenter
✨ New methods
Period::fromDateInterval()
converts a nativeDateInterval
object toPeriod