D8D da8e66ac9e Initial commit 1 éve
..
_lib da8e66ac9e Initial commit 1 éve
add da8e66ac9e Initial commit 1 éve
addBusinessDays da8e66ac9e Initial commit 1 éve
addDays da8e66ac9e Initial commit 1 éve
addHours da8e66ac9e Initial commit 1 éve
addISOWeekYears da8e66ac9e Initial commit 1 éve
addMilliseconds da8e66ac9e Initial commit 1 éve
addMinutes da8e66ac9e Initial commit 1 éve
addMonths da8e66ac9e Initial commit 1 éve
addQuarters da8e66ac9e Initial commit 1 éve
addSeconds da8e66ac9e Initial commit 1 éve
addWeeks da8e66ac9e Initial commit 1 éve
addYears da8e66ac9e Initial commit 1 éve
areIntervalsOverlapping da8e66ac9e Initial commit 1 éve
clamp da8e66ac9e Initial commit 1 éve
closestIndexTo da8e66ac9e Initial commit 1 éve
closestTo da8e66ac9e Initial commit 1 éve
compareAsc da8e66ac9e Initial commit 1 éve
compareDesc da8e66ac9e Initial commit 1 éve
constants da8e66ac9e Initial commit 1 éve
daysToWeeks da8e66ac9e Initial commit 1 éve
differenceInBusinessDays da8e66ac9e Initial commit 1 éve
differenceInCalendarDays da8e66ac9e Initial commit 1 éve
differenceInCalendarISOWeekYears da8e66ac9e Initial commit 1 éve
differenceInCalendarISOWeeks da8e66ac9e Initial commit 1 éve
differenceInCalendarMonths da8e66ac9e Initial commit 1 éve
differenceInCalendarQuarters da8e66ac9e Initial commit 1 éve
differenceInCalendarWeeks da8e66ac9e Initial commit 1 éve
differenceInCalendarYears da8e66ac9e Initial commit 1 éve
differenceInDays da8e66ac9e Initial commit 1 éve
differenceInHours da8e66ac9e Initial commit 1 éve
differenceInISOWeekYears da8e66ac9e Initial commit 1 éve
differenceInMilliseconds da8e66ac9e Initial commit 1 éve
differenceInMinutes da8e66ac9e Initial commit 1 éve
differenceInMonths da8e66ac9e Initial commit 1 éve
differenceInQuarters da8e66ac9e Initial commit 1 éve
differenceInSeconds da8e66ac9e Initial commit 1 éve
differenceInWeeks da8e66ac9e Initial commit 1 éve
differenceInYears da8e66ac9e Initial commit 1 éve
docs da8e66ac9e Initial commit 1 éve
eachDayOfInterval da8e66ac9e Initial commit 1 éve
eachHourOfInterval da8e66ac9e Initial commit 1 éve
eachMinuteOfInterval da8e66ac9e Initial commit 1 éve
eachMonthOfInterval da8e66ac9e Initial commit 1 éve
eachQuarterOfInterval da8e66ac9e Initial commit 1 éve
eachWeekOfInterval da8e66ac9e Initial commit 1 éve
eachWeekendOfInterval da8e66ac9e Initial commit 1 éve
eachWeekendOfMonth da8e66ac9e Initial commit 1 éve
eachWeekendOfYear da8e66ac9e Initial commit 1 éve
eachYearOfInterval da8e66ac9e Initial commit 1 éve
endOfDay da8e66ac9e Initial commit 1 éve
endOfDecade da8e66ac9e Initial commit 1 éve
endOfHour da8e66ac9e Initial commit 1 éve
endOfISOWeek da8e66ac9e Initial commit 1 éve
endOfISOWeekYear da8e66ac9e Initial commit 1 éve
endOfMinute da8e66ac9e Initial commit 1 éve
endOfMonth da8e66ac9e Initial commit 1 éve
endOfQuarter da8e66ac9e Initial commit 1 éve
endOfSecond da8e66ac9e Initial commit 1 éve
endOfToday da8e66ac9e Initial commit 1 éve
endOfTomorrow da8e66ac9e Initial commit 1 éve
endOfWeek da8e66ac9e Initial commit 1 éve
endOfYear da8e66ac9e Initial commit 1 éve
endOfYesterday da8e66ac9e Initial commit 1 éve
esm da8e66ac9e Initial commit 1 éve
format da8e66ac9e Initial commit 1 éve
formatDistance da8e66ac9e Initial commit 1 éve
formatDistanceStrict da8e66ac9e Initial commit 1 éve
formatDistanceToNow da8e66ac9e Initial commit 1 éve
formatDistanceToNowStrict da8e66ac9e Initial commit 1 éve
formatDuration da8e66ac9e Initial commit 1 éve
formatISO da8e66ac9e Initial commit 1 éve
formatISO9075 da8e66ac9e Initial commit 1 éve
formatISODuration da8e66ac9e Initial commit 1 éve
formatRFC3339 da8e66ac9e Initial commit 1 éve
formatRFC7231 da8e66ac9e Initial commit 1 éve
formatRelative da8e66ac9e Initial commit 1 éve
fp da8e66ac9e Initial commit 1 éve
fromUnixTime da8e66ac9e Initial commit 1 éve
getDate da8e66ac9e Initial commit 1 éve
getDay da8e66ac9e Initial commit 1 éve
getDayOfYear da8e66ac9e Initial commit 1 éve
getDaysInMonth da8e66ac9e Initial commit 1 éve
getDaysInYear da8e66ac9e Initial commit 1 éve
getDecade da8e66ac9e Initial commit 1 éve
getDefaultOptions da8e66ac9e Initial commit 1 éve
getHours da8e66ac9e Initial commit 1 éve
getISODay da8e66ac9e Initial commit 1 éve
getISOWeek da8e66ac9e Initial commit 1 éve
getISOWeekYear da8e66ac9e Initial commit 1 éve
getISOWeeksInYear da8e66ac9e Initial commit 1 éve
getMilliseconds da8e66ac9e Initial commit 1 éve
getMinutes da8e66ac9e Initial commit 1 éve
getMonth da8e66ac9e Initial commit 1 éve
getOverlappingDaysInIntervals da8e66ac9e Initial commit 1 éve
getQuarter da8e66ac9e Initial commit 1 éve
getSeconds da8e66ac9e Initial commit 1 éve
getTime da8e66ac9e Initial commit 1 éve
getUnixTime da8e66ac9e Initial commit 1 éve
getWeek da8e66ac9e Initial commit 1 éve
getWeekOfMonth da8e66ac9e Initial commit 1 éve
getWeekYear da8e66ac9e Initial commit 1 éve
getWeeksInMonth da8e66ac9e Initial commit 1 éve
getYear da8e66ac9e Initial commit 1 éve
hoursToMilliseconds da8e66ac9e Initial commit 1 éve
hoursToMinutes da8e66ac9e Initial commit 1 éve
hoursToSeconds da8e66ac9e Initial commit 1 éve
intervalToDuration da8e66ac9e Initial commit 1 éve
intlFormat da8e66ac9e Initial commit 1 éve
intlFormatDistance da8e66ac9e Initial commit 1 éve
isAfter da8e66ac9e Initial commit 1 éve
isBefore da8e66ac9e Initial commit 1 éve
isDate da8e66ac9e Initial commit 1 éve
isEqual da8e66ac9e Initial commit 1 éve
isExists da8e66ac9e Initial commit 1 éve
isFirstDayOfMonth da8e66ac9e Initial commit 1 éve
isFriday da8e66ac9e Initial commit 1 éve
isFuture da8e66ac9e Initial commit 1 éve
isLastDayOfMonth da8e66ac9e Initial commit 1 éve
isLeapYear da8e66ac9e Initial commit 1 éve
isMatch da8e66ac9e Initial commit 1 éve
isMonday da8e66ac9e Initial commit 1 éve
isPast da8e66ac9e Initial commit 1 éve
isSameDay da8e66ac9e Initial commit 1 éve
isSameHour da8e66ac9e Initial commit 1 éve
isSameISOWeek da8e66ac9e Initial commit 1 éve
isSameISOWeekYear da8e66ac9e Initial commit 1 éve
isSameMinute da8e66ac9e Initial commit 1 éve
isSameMonth da8e66ac9e Initial commit 1 éve
isSameQuarter da8e66ac9e Initial commit 1 éve
isSameSecond da8e66ac9e Initial commit 1 éve
isSameWeek da8e66ac9e Initial commit 1 éve
isSameYear da8e66ac9e Initial commit 1 éve
isSaturday da8e66ac9e Initial commit 1 éve
isSunday da8e66ac9e Initial commit 1 éve
isThisHour da8e66ac9e Initial commit 1 éve
isThisISOWeek da8e66ac9e Initial commit 1 éve
isThisMinute da8e66ac9e Initial commit 1 éve
isThisMonth da8e66ac9e Initial commit 1 éve
isThisQuarter da8e66ac9e Initial commit 1 éve
isThisSecond da8e66ac9e Initial commit 1 éve
isThisWeek da8e66ac9e Initial commit 1 éve
isThisYear da8e66ac9e Initial commit 1 éve
isThursday da8e66ac9e Initial commit 1 éve
isToday da8e66ac9e Initial commit 1 éve
isTomorrow da8e66ac9e Initial commit 1 éve
isTuesday da8e66ac9e Initial commit 1 éve
isValid da8e66ac9e Initial commit 1 éve
isWednesday da8e66ac9e Initial commit 1 éve
isWeekend da8e66ac9e Initial commit 1 éve
isWithinInterval da8e66ac9e Initial commit 1 éve
isYesterday da8e66ac9e Initial commit 1 éve
lastDayOfDecade da8e66ac9e Initial commit 1 éve
lastDayOfISOWeek da8e66ac9e Initial commit 1 éve
lastDayOfISOWeekYear da8e66ac9e Initial commit 1 éve
lastDayOfMonth da8e66ac9e Initial commit 1 éve
lastDayOfQuarter da8e66ac9e Initial commit 1 éve
lastDayOfWeek da8e66ac9e Initial commit 1 éve
lastDayOfYear da8e66ac9e Initial commit 1 éve
lightFormat da8e66ac9e Initial commit 1 éve
locale da8e66ac9e Initial commit 1 éve
max da8e66ac9e Initial commit 1 éve
milliseconds da8e66ac9e Initial commit 1 éve
millisecondsToHours da8e66ac9e Initial commit 1 éve
millisecondsToMinutes da8e66ac9e Initial commit 1 éve
millisecondsToSeconds da8e66ac9e Initial commit 1 éve
min da8e66ac9e Initial commit 1 éve
minutesToHours da8e66ac9e Initial commit 1 éve
minutesToMilliseconds da8e66ac9e Initial commit 1 éve
minutesToSeconds da8e66ac9e Initial commit 1 éve
monthsToQuarters da8e66ac9e Initial commit 1 éve
monthsToYears da8e66ac9e Initial commit 1 éve
nextDay da8e66ac9e Initial commit 1 éve
nextFriday da8e66ac9e Initial commit 1 éve
nextMonday da8e66ac9e Initial commit 1 éve
nextSaturday da8e66ac9e Initial commit 1 éve
nextSunday da8e66ac9e Initial commit 1 éve
nextThursday da8e66ac9e Initial commit 1 éve
nextTuesday da8e66ac9e Initial commit 1 éve
nextWednesday da8e66ac9e Initial commit 1 éve
parse da8e66ac9e Initial commit 1 éve
parseISO da8e66ac9e Initial commit 1 éve
parseJSON da8e66ac9e Initial commit 1 éve
previousDay da8e66ac9e Initial commit 1 éve
previousFriday da8e66ac9e Initial commit 1 éve
previousMonday da8e66ac9e Initial commit 1 éve
previousSaturday da8e66ac9e Initial commit 1 éve
previousSunday da8e66ac9e Initial commit 1 éve
previousThursday da8e66ac9e Initial commit 1 éve
previousTuesday da8e66ac9e Initial commit 1 éve
previousWednesday da8e66ac9e Initial commit 1 éve
quartersToMonths da8e66ac9e Initial commit 1 éve
quartersToYears da8e66ac9e Initial commit 1 éve
roundToNearestMinutes da8e66ac9e Initial commit 1 éve
secondsToHours da8e66ac9e Initial commit 1 éve
secondsToMilliseconds da8e66ac9e Initial commit 1 éve
secondsToMinutes da8e66ac9e Initial commit 1 éve
set da8e66ac9e Initial commit 1 éve
setDate da8e66ac9e Initial commit 1 éve
setDay da8e66ac9e Initial commit 1 éve
setDayOfYear da8e66ac9e Initial commit 1 éve
setDefaultOptions da8e66ac9e Initial commit 1 éve
setHours da8e66ac9e Initial commit 1 éve
setISODay da8e66ac9e Initial commit 1 éve
setISOWeek da8e66ac9e Initial commit 1 éve
setISOWeekYear da8e66ac9e Initial commit 1 éve
setMilliseconds da8e66ac9e Initial commit 1 éve
setMinutes da8e66ac9e Initial commit 1 éve
setMonth da8e66ac9e Initial commit 1 éve
setQuarter da8e66ac9e Initial commit 1 éve
setSeconds da8e66ac9e Initial commit 1 éve
setWeek da8e66ac9e Initial commit 1 éve
setWeekYear da8e66ac9e Initial commit 1 éve
setYear da8e66ac9e Initial commit 1 éve
startOfDay da8e66ac9e Initial commit 1 éve
startOfDecade da8e66ac9e Initial commit 1 éve
startOfHour da8e66ac9e Initial commit 1 éve
startOfISOWeek da8e66ac9e Initial commit 1 éve
startOfISOWeekYear da8e66ac9e Initial commit 1 éve
startOfMinute da8e66ac9e Initial commit 1 éve
startOfMonth da8e66ac9e Initial commit 1 éve
startOfQuarter da8e66ac9e Initial commit 1 éve
startOfSecond da8e66ac9e Initial commit 1 éve
startOfToday da8e66ac9e Initial commit 1 éve
startOfTomorrow da8e66ac9e Initial commit 1 éve
startOfWeek da8e66ac9e Initial commit 1 éve
startOfWeekYear da8e66ac9e Initial commit 1 éve
startOfYear da8e66ac9e Initial commit 1 éve
startOfYesterday da8e66ac9e Initial commit 1 éve
sub da8e66ac9e Initial commit 1 éve
subBusinessDays da8e66ac9e Initial commit 1 éve
subDays da8e66ac9e Initial commit 1 éve
subHours da8e66ac9e Initial commit 1 éve
subISOWeekYears da8e66ac9e Initial commit 1 éve
subMilliseconds da8e66ac9e Initial commit 1 éve
subMinutes da8e66ac9e Initial commit 1 éve
subMonths da8e66ac9e Initial commit 1 éve
subQuarters da8e66ac9e Initial commit 1 éve
subSeconds da8e66ac9e Initial commit 1 éve
subWeeks da8e66ac9e Initial commit 1 éve
subYears da8e66ac9e Initial commit 1 éve
toDate da8e66ac9e Initial commit 1 éve
weeksToDays da8e66ac9e Initial commit 1 éve
yearsToMonths da8e66ac9e Initial commit 1 éve
yearsToQuarters da8e66ac9e Initial commit 1 éve
CHANGELOG.md da8e66ac9e Initial commit 1 éve
LICENSE.md da8e66ac9e Initial commit 1 éve
README.md da8e66ac9e Initial commit 1 éve
index.js da8e66ac9e Initial commit 1 éve
index.js.flow da8e66ac9e Initial commit 1 éve
package.json da8e66ac9e Initial commit 1 éve
types.js da8e66ac9e Initial commit 1 éve

README.md

date-fns

date-fns provides the most comprehensive, yet simple and consistent toolset
for manipulating JavaScript dates in a browser & Node.js.

[📖  Documentation](https://date-fns.org/docs/Getting-Started/)   |   [🧑‍💻  JavaScript Jobs](https://jobs.date-fns.org/)

It's like Lodash for dates

  • It has 200+ functions for all occasions.
  • Modular: Pick what you need. Works with webpack, Browserify, or Rollup and also supports tree-shaking.
  • Native dates: Uses existing native type. It doesn't extend core objects for safety's sake.
  • Immutable & Pure: Built using pure functions and always returns a new date instance.
  • TypeScript & Flow: Supports both Flow and TypeScript
  • I18n: Dozens of locales. Include only what you need.
  • and many more benefits

    import { compareAsc, format } from 'date-fns'
    
    format(new Date(2014, 1, 11), 'yyyy-MM-dd')
    //=> '2014-02-11'
    
    const dates = [
    new Date(1995, 6, 2),
    new Date(1987, 1, 11),
    new Date(1989, 6, 10),
    ]
    dates.sort(compareAsc)
    //=> [
    //   Wed Feb 11 1987 00:00:00,
    //   Mon Jul 10 1989 00:00:00,
    //   Sun Jul 02 1995 00:00:00
    // ]
    

The library is available as an npm package. To install the package run:

npm install date-fns --save
# or with yarn
yarn add date-fns

Docs

See date-fns.org for more details, API, and other docs.


License

MIT © Sasha Koss