0.5.4
🐛 Bug fixes
YearMonth::__toString()
would return an invalid string for years< 1000
(#87)
✨ New methods
Year::parse()
andYear::from()
(#86)YearWeek::parse()
andYearWeek::from()
(#86)- the following classes now have a
toISOString()
method: (#87)Duration
Instant
Interval
LocalDate
LocalDateRange
LocalDateTime
LocalTime
MonthDay
Period
Year
YearMonth
YearMonthRange
YearWeek
ZonedDateTime
The toISOString()
methods return the same result as __toString()
, but are better suited for the nullsafe operator:
$date?->toISOString();
⚡️ Performance optimizations
- Most
__toString()
methods got a small performance boost (#85)
Thanks to @gnutix!