github briannesbitt/Carbon 2.16.0

latest releases: 3.3.1, 3.3.0, 3.2.4...
5 years ago

Complete commits list: 2.15.0...2.16.0

Summary:

  • Added ago() alias
  • Added timespan() method
  • Added createFromIsoFormat() (like createFromFormat but with format of ->isoFormat() method)
  • Added createFromLocaleFormat() (like createFromFormat but with string in any language)
  • Added createFromLocaleIsoFormat (like createFromFormat but with format of ->isoFormat() method and string in any language)
  • Updated locale() can now take fallback locales as rest parameters
  • Added parseFromLocale() translate a string from a given language to English then parse it to create a date
  • Added rawFormat() always call the native PHP DateTime format() method
  • Updated format() can now be customized at object level via settings() or globally by sub-class
  • Added rawParse() always call the native PHP DateTime parse() method
  • Updated parse() can now be customized by sub-class
  • Added rawCreateFromFormat() always call the native PHP DateTime createFromFormat() method
  • Updated createFromFormat () can now be customized by sub-class

Don't miss a new Carbon release

NewReleases is sending notifications on new releases.