Skip to content

0.4.1

Compare
Choose a tag to compare
@BenMorel BenMorel released this 18 Jun 22:07
· 144 commits to master since this release

✨ New methods

  • LocalDateRange::toPeriod() (#51)
  • Year::toLocalDateRange() (#46)
  • YearMonth::toLocalDateRange() (#46)
  • YearMonthRange::toLocalDateRange() (#46)
  • YearWeek::toLocalDateRange() (#46)

πŸ’© Deprecations

The following methods have been deprecated in favour of new names (#47):

  • Period::fromDateInterval() β†’ fromNativeDateInterval()
  • Period::toDateInterval() β†’ toNativeDateInterval()
  • TimeZone::fromDateTimeZone() β†’ fromNativeDateTimeZone()
  • TimeZone::toDateTimeZone() β†’ toNativeDateTimeZone()
  • LocalTime::fromDateTime() β†’ fromNativeDateTime()
  • LocalTime::toDateTime() β†’ toNativeDateTime()
  • LocalTime::toDateTimeImmutable() β†’ toNativeDateTimeImmutable()
  • LocalDateRange::toDatePeriod() β†’ toNativeDatePeriod()
  • LocalDate::fromDateTime() β†’ fromNativeDateTime()
  • LocalDate::toDateTime() β†’ toNativeDateTime()
  • LocalDate::toDateTimeImmutable() β†’ toNativeDateTimeImmutable()
  • ZonedDateTime::fromDateTime() β†’ fromNativeDateTime()
  • ZonedDateTime::toDateTime() β†’ toNativeDateTime()
  • ZonedDateTime::toDateTimeImmutable() β†’ toNativeDateTimeImmutable()
  • LocalDateTime::fromDateTime() β†’ fromNativeDateTime()
  • LocalDateTime::toDateTime() β†’ toNativeDateTime()
  • LocalDateTime::toDateTimeImmutable() β†’ toNativeDateTimeImmutable()

Thanks to @solodkiy, and to @tigitz for introducing long overdue coding standards!