github briannesbitt/Carbon 1.24.0

latest releases: 3.3.0, 3.2.4, 3.2.3...
6 years ago

Complete commits list: 1.23.0...1.24.0

Summary:

  • Added createMidnightDate() method
  • Added isLastOfMonth() method
  • Added isDayOfWeek() method
  • Added toRfc7231String() method
  • Added toIso8601ZuluString() method
  • Added hasFormat() method
  • Added toArray() method
  • Added startOfHour() method
  • Added endOfHour() method
  • Added startOfMinute() method
  • Added endOfMinute() method
  • Added midDay() dynamic method, and getMidDayAt, setMidDayAt static methods
  • Added nowWithSameTz() method
  • Added CarbonInterval::compare() method
  • Added year overflow support (addYearsNoOverflow, addYearNoOverflow, addYearsWithOverflow, addYearWithOverflow, subYearNoOverflow, subYearsNoOverflow, subYearWithOverflow, subYearsWithOverflow dynamic methods and useYearsOverflow, resetYearsOverflow, shouldOverflowYears static methods)
  • Added microseconds on calling now with PHP < 7.1 (PHP >= 7.1 still support it natively)
  • Fixed hasRelativeKeywords() that no longer guess if the string is relative but test if it really produces a relative date, making it more accurate
  • Fixed createSafe(), now throws an exception with PHP >= 5.4 if the time is in a hour skipped by daylight saving time
  • Allowed DateTime and DateTimeInterface in diff methods

Don't miss a new Carbon release

NewReleases is sending notifications on new releases.