Socket
Socket
Sign inDemoInstall

date-fns

Package Overview
Dependencies
0
Maintainers
2
Versions
200
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
16171820Next

0.16.0

Diff

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 •

kossnocorp
published 0.13.0 •

Changelog

Source

[0.13.0] - 2014-10-22

Added

  • addMinutes

  • subMinutes

  • isEqual

  • isBefore

  • isAfter

kossnocorp
published 0.12.1 •

Changelog

Source

[0.12.1] - 2014-10-19

Fixed

  • Incorrect rounding in DDD formatter.
kossnocorp
published 0.12.0 •

Changelog

Source

[0.12.0] - 2014-10-15

Added

  • isSameYear
kossnocorp
published 0.11.0 •

Changelog

Source

[0.11.0] - 2014-10-15

Added

  • isWithinRange
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc