Skip to content

1.25.0

Compare
Choose a tag to compare
@kylekatarnls kylekatarnls released this 20 Mar 14:45
cbcf13d

Complete commits list: 1.24.2...1.25.0

Summary:

  • Allowed date/time strings in diffIn* and diffForHumans methods
  • Added addRealHours()/addRealHour()/subRealHours()/subRealHour() method
  • Added addRealMinutes()/addRealMinute()/subRealMinutes()/subRealMinute() method
  • Added addRealSeconds()/addRealSecond()/subRealSeconds()/subRealSecond() method
  • Added diffInRealHours() method
  • Added diffInRealMinutes() method
  • Added diffInRealSeconds() method
  • Added Carbon::createFromTimeString() method
  • Added CarbonInterval::fromString() method
  • Allowed spec string as CarbonInterval constructor and in CarbonInterval::parse()
  • Added Carbon::useMicrosecondsFallback() and Carbon::isMicrosecondsFallbackEnabled() to handle microseconds work-around in PHP < 7.1
  • Added dayOfWeekIso property
  • Allowed editing/adding languages and translations