Skip to content

Commit

Permalink
Add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Oct 3, 2023
1 parent 5eeba96 commit a0878f8
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# Changelog

## UNRELEASED (0.5.4)

🐛 **Bug fixes**

- `YearMonth::__toString()` would return an invalid string for years `< 1000` (#87)

**New methods**

- `Year::parse()` and `Year::from()` (#86)
- `YearWeek::parse()` and `YearWeek::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:

```php
$date?->toISOString();
```

Thanks to @gnutix!

## [0.5.3](https://github.com/brick/date-time/releases/tag/0.5.3) - 2023-09-27

**New methods**
Expand Down

0 comments on commit a0878f8

Please sign in to comment.