Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

date-fns

Package Overview
Dependencies
Maintainers
2
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-fns - npm Package Versions

1
21

1.0.0-alpha3

Diff

kossnocorp
published 1.0.0-alpha2 •

kossnocorp
published 1.0.0-alpha1 •

kossnocorp
published 0.17.0 •

Changelog

Source

[0.17.0] - 2015-09-29

Fixed

  • Fixed a lot of bugs appearing when date is modifying into other time zone (e.g., when adding months and original date is in DST but new date is not).

  • Prevent instances of Date to lose milliseconds value when passed to. parse in IE10.

Changed

  • setISOWeek now keeps time from original date.

  • Internal: reuse getDaysInMonth inside of addMonths.

Added

  • differenceInDays

  • getTimeSinceMidnight

  • format now has new format key aa, which returns a.m./p.m. as opposed to a that returns am/pm.

  • Complete UMD package (for Bower and CDN).

kossnocorp
published 0.16.0 •

Changelog

Source

[0.16.0] - 2015-09-01

Changed

  • Use parse to clean date arguments in all functions.

  • parse now fallbacks to new Date when the argument is not an ISO formatted date.

  • Internal: reuse getDaysInMonth inside of setMonth.

Added

  • addQuarters

  • addWeeks

  • endOfQuarter

  • getDate

  • getDay

  • getDaysInMonth

  • getHours

  • getISOWeeksInYear

  • getMilliseconds

  • getMinutes

  • getMonth

  • getSeconds

  • getYear

  • isLeapYear

  • isSameHour

  • isSameMinute

  • isSameQuarter

  • isSameSecond

  • lastDayOfQuarter

  • lastDayOfWeek

  • max

  • min

  • setDate

  • setDay

  • setHours

  • setMilliseconds

  • setMinutes

  • setSeconds

  • startOfQuarter

  • subQuarters

  • subWeeks

kossnocorp
published 0.15.0 •

Changelog

Source

[0.15.0] - 2015-08-26

Changed

  • format now returns a.m./p.m. instead of am/pm.

  • setMonth now sets last day of month if original date was last day of longer month.

  • Internal: Fix code style according to ESLint.

  • Internal: Make tests run through all time zones.

Added

  • getQuarter

  • setQuarter

  • getDayOfYear

  • setDayOfYear

  • isPast

  • addSeconds

  • subSeconds

  • startOfSecond

  • endOfSecond

  • startOfMinute

  • endOfMinute

  • addMilliseconds

  • subMilliseconds

  • endOfYear

  • addYears

  • subYears

  • lastDayOfYear

  • lastDayOfMonth

dolbyzerr
published 0.14.11 •

Changelog

Source

[0.14.11] - 2015-08-21

Fixed

  • format now uses parse to avoid time zone bugs.

Changed

  • setIsoWeek now sets time to the start of the day.
kossnocorp
published 0.14.9 •

Changelog

Source

[0.14.9] - 2015-01-14

Fixed

  • addMonths now correctly behaves with February (see #18).
kossnocorp
published 0.14.8 •

Changelog

Source

[0.14.8] - 2014-12-25

Fixed

  • format function now behaves correctly with pm/am.
kossnocorp
published 0.14.5 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc