dart_date 1.5.3 copy "dart_date: ^1.5.3" to clipboard
dart_date: ^1.5.3 copied to clipboard

Date manipulation library. DateTime extensions. Also includes an Interval object.

Changelog #

1.5.3 #

  • Add hashCode override in Interval class to properly support identity in hash-based collections

1.5.2 #

  • Add startOfQuarter and endOfQuarter getters

1.5.1 #

  • Add ignoreDaylightSavings parameter to subDays, subHours, subMinutes, and subSeconds methods
  • Update previousWeek to use ignoreDaylightSavings=true like nextWeek
  • https://github.com/xantiagoma/dart_date/pull/43 changes on nextWeek and previousWeek check if you're logic depends on daylight savings.

1.5.0 #

1.4.0 #

  • !!! BREAKING CHANGE Interval can accept negative values
  • Some methods that used to throw an error now return null instead
  • Fix type with symetricDifference to symmetricDifference, marking the other one as deprecated @praiaBarryTolnas #39
  • !!! BREAKING CHANGE Change extension name from Date to DateTimeExtension @tjarvstrand #38 - static methods are now exported from DateTimeExtension._ instead of Date._

1.3.3 #

  • Support intl v0.19.0 and Dart 3.0, thanks to @ThexXTURBOXx

1.3.2 #

  • fix isWeekend

1.3.1 #

1.3.0 #

1.2.2 #

  • Update dependencies

1.2.1 #

1.1.1 #

  • Merge PR to fix week calculation

1.1.0-nullsafety.0 #

  • Add null-safety

1.0.9 #

  • Rename UTC to utc & Local to local to follow dart analysis
  • Changes in PR #6
  • Add optional ignoreDaylightSavings to add* methods

1.0.8 #

  • Fix isMonday, isTuesday, isWednesday, isThursday, isFriday, isSaturday, isSunday

1.0.7 #

  • Add getWeekYear, getWeek, getISOWeek, getISOWeeksInYear, startOfWeekYear, startOfISOWeekYear
  • Merged PR: //github.com/xantiagoma/dart_date/pull/2

1.0.6 #

  • Improve documentation
  • Add extension operators on DateTime and Duration

1.0.5 #

  • same 1.0.4

1.0.4 #

  • pub.dev recommendations

1.0.3 #

  • Delete this if not needed and convert functions to => if possible

1.0.2 #

  • dartfmt overwriting

1.0.1 #

  • Include recommendations from pub.dev

1.0.0 #

  • !!! Broken API related to 0.x versions
  • Using new fancy dart extensions feature
  • Use .method() or .property to access extension methods / getters and Date.method() / Date.property for new static properties.

0.0.9 #

  • Changes Date.parse to accept or not a format
  • Added date.isFirstDayOfMonth getter
  • Added date.isLastDayOfMonth getter
  • Added date.isLeapYear getter

0.0.8 #

  • Adding documentation and timeago date.timeago()
186
likes
160
points
23.9k
downloads

Publisher

verified publisherxantiagoma.com

Weekly Downloads

Date manipulation library. DateTime extensions. Also includes an Interval object.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

intl, timeago

More

Packages that depend on dart_date