![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | _lib/ | 2023-06-19 12:51 | - | |
![]() | esm/ | 2023-06-19 12:51 | - | |
![]() | fp/ | 2023-06-19 12:51 | - | |
![]() | locale/ | 2023-06-19 12:51 | - | |
![]() | add/ | 2023-06-19 12:51 | - | |
![]() | addBusinessDays/ | 2023-06-19 12:51 | - | |
![]() | addDays/ | 2023-06-19 12:51 | - | |
![]() | addHours/ | 2023-06-19 12:51 | - | |
![]() | addISOWeekYears/ | 2023-06-19 12:51 | - | |
![]() | addMilliseconds/ | 2023-06-19 12:51 | - | |
![]() | addMinutes/ | 2023-06-19 12:51 | - | |
![]() | addMonths/ | 2023-06-19 12:51 | - | |
![]() | addQuarters/ | 2023-06-19 12:51 | - | |
![]() | addSeconds/ | 2023-06-19 12:51 | - | |
![]() | docs/ | 2023-06-19 12:51 | - | |
![]() | addWeeks/ | 2023-06-19 12:51 | - | |
![]() | addYears/ | 2023-06-19 12:51 | - | |
![]() | areIntervalsOverlapping/ | 2023-06-19 12:51 | - | |
![]() | clamp/ | 2023-06-19 12:51 | - | |
![]() | closestIndexTo/ | 2023-06-19 12:51 | - | |
![]() | closestTo/ | 2023-06-19 12:51 | - | |
![]() | compareAsc/ | 2023-06-19 12:51 | - | |
![]() | compareDesc/ | 2023-06-19 12:51 | - | |
![]() | constants/ | 2023-06-19 12:51 | - | |
![]() | daysToWeeks/ | 2023-06-19 12:51 | - | |
![]() | differenceInBusinessDays/ | 2023-06-19 12:51 | - | |
![]() | differenceInCalendarDays/ | 2023-06-19 12:51 | - | |
![]() | differenceInCalendarISOWeekYears/ | 2023-06-19 12:51 | - | |
![]() | differenceInCalendarISOWeeks/ | 2023-06-19 12:51 | - | |
![]() | differenceInCalendarMonths/ | 2023-06-19 12:51 | - | |
![]() | differenceInCalendarQuarters/ | 2023-06-19 12:51 | - | |
![]() | differenceInCalendarWeeks/ | 2023-06-19 12:51 | - | |
![]() | differenceInCalendarYears/ | 2023-06-19 12:51 | - | |
![]() | differenceInDays/ | 2023-06-19 12:51 | - | |
![]() | differenceInHours/ | 2023-06-19 12:51 | - | |
![]() | differenceInISOWeekYears/ | 2023-06-19 12:51 | - | |
![]() | differenceInMilliseconds/ | 2023-06-19 12:51 | - | |
![]() | differenceInMinutes/ | 2023-06-19 12:51 | - | |
![]() | differenceInMonths/ | 2023-06-19 12:51 | - | |
![]() | differenceInQuarters/ | 2023-06-19 12:51 | - | |
![]() | differenceInSeconds/ | 2023-06-19 12:51 | - | |
![]() | differenceInWeeks/ | 2023-06-19 12:51 | - | |
![]() | differenceInYears/ | 2023-06-19 12:51 | - | |
![]() | eachDayOfInterval/ | 2023-06-19 12:51 | - | |
![]() | eachHourOfInterval/ | 2023-06-19 12:51 | - | |
![]() | eachMinuteOfInterval/ | 2023-06-19 12:51 | - | |
![]() | eachMonthOfInterval/ | 2023-06-19 12:51 | - | |
![]() | eachQuarterOfInterval/ | 2023-06-19 12:51 | - | |
![]() | eachWeekOfInterval/ | 2023-06-19 12:51 | - | |
![]() | eachWeekendOfInterval/ | 2023-06-19 12:51 | - | |
![]() | eachWeekendOfMonth/ | 2023-06-19 12:51 | - | |
![]() | eachWeekendOfYear/ | 2023-06-19 12:51 | - | |
![]() | eachYearOfInterval/ | 2023-06-19 12:51 | - | |
![]() | endOfDay/ | 2023-06-19 12:51 | - | |
![]() | endOfDecade/ | 2023-06-19 12:51 | - | |
![]() | endOfHour/ | 2023-06-19 12:51 | - | |
![]() | endOfISOWeek/ | 2023-06-19 12:51 | - | |
![]() | endOfISOWeekYear/ | 2023-06-19 12:51 | - | |
![]() | endOfMinute/ | 2023-06-19 12:51 | - | |
![]() | endOfMonth/ | 2023-06-19 12:51 | - | |
![]() | endOfQuarter/ | 2023-06-19 12:51 | - | |
![]() | endOfSecond/ | 2023-06-19 12:51 | - | |
![]() | endOfToday/ | 2023-06-19 12:51 | - | |
![]() | endOfTomorrow/ | 2023-06-19 12:51 | - | |
![]() | endOfWeek/ | 2023-06-19 12:51 | - | |
![]() | endOfYear/ | 2023-06-19 12:51 | - | |
![]() | endOfYesterday/ | 2023-06-19 12:51 | - | |
![]() | format/ | 2023-06-19 12:51 | - | |
![]() | formatDistance/ | 2023-06-19 12:51 | - | |
![]() | formatDistanceStrict/ | 2023-06-19 12:51 | - | |
![]() | formatDistanceToNow/ | 2023-06-19 12:51 | - | |
![]() | formatDistanceToNowStrict/ | 2023-06-19 12:51 | - | |
![]() | formatDuration/ | 2023-06-19 12:51 | - | |
![]() | formatISO/ | 2023-06-19 12:51 | - | |
![]() | formatISO9075/ | 2023-06-19 12:51 | - | |
![]() | formatISODuration/ | 2023-06-19 12:51 | - | |
![]() | formatRFC3339/ | 2023-06-19 12:51 | - | |
![]() | formatRFC7231/ | 2023-06-19 12:51 | - | |
![]() | formatRelative/ | 2023-06-19 12:51 | - | |
![]() | fromUnixTime/ | 2023-06-19 12:51 | - | |
![]() | getDate/ | 2023-06-19 12:51 | - | |
![]() | getDay/ | 2023-06-19 12:51 | - | |
![]() | getDayOfYear/ | 2023-06-19 12:51 | - | |
![]() | getDaysInMonth/ | 2023-06-19 12:51 | - | |
![]() | getDaysInYear/ | 2023-06-19 12:51 | - | |
![]() | getDecade/ | 2023-06-19 12:51 | - | |
![]() | getDefaultOptions/ | 2023-06-19 12:51 | - | |
![]() | getHours/ | 2023-06-19 12:51 | - | |
![]() | getISODay/ | 2023-06-19 12:51 | - | |
![]() | getISOWeek/ | 2023-06-19 12:51 | - | |
![]() | getISOWeekYear/ | 2023-06-19 12:51 | - | |
![]() | getISOWeeksInYear/ | 2023-06-19 12:51 | - | |
![]() | getMilliseconds/ | 2023-06-19 12:51 | - | |
![]() | getMinutes/ | 2023-06-19 12:51 | - | |
![]() | getMonth/ | 2023-06-19 12:51 | - | |
![]() | getOverlappingDaysInIntervals/ | 2023-06-19 12:51 | - | |
![]() | getQuarter/ | 2023-06-19 12:51 | - | |
![]() | getSeconds/ | 2023-06-19 12:51 | - | |
![]() | getTime/ | 2023-06-19 12:51 | - | |
![]() | getUnixTime/ | 2023-06-19 12:51 | - | |
![]() | getWeek/ | 2023-06-19 12:51 | - | |
![]() | getWeekOfMonth/ | 2023-06-19 12:51 | - | |
![]() | getWeekYear/ | 2023-06-19 12:51 | - | |
![]() | getWeeksInMonth/ | 2023-06-19 12:51 | - | |
![]() | getYear/ | 2023-06-19 12:51 | - | |
![]() | hoursToMilliseconds/ | 2023-06-19 12:51 | - | |
![]() | hoursToMinutes/ | 2023-06-19 12:51 | - | |
![]() | hoursToSeconds/ | 2023-06-19 12:51 | - | |
![]() | intervalToDuration/ | 2023-06-19 12:51 | - | |
![]() | intlFormat/ | 2023-06-19 12:51 | - | |
![]() | intlFormatDistance/ | 2023-06-19 12:51 | - | |
![]() | isAfter/ | 2023-06-19 12:51 | - | |
![]() | isBefore/ | 2023-06-19 12:51 | - | |
![]() | isDate/ | 2023-06-19 12:51 | - | |
![]() | isEqual/ | 2023-06-19 12:51 | - | |
![]() | isExists/ | 2023-06-19 12:51 | - | |
![]() | isFirstDayOfMonth/ | 2023-06-19 12:51 | - | |
![]() | isFriday/ | 2023-06-19 12:51 | - | |
![]() | isFuture/ | 2023-06-19 12:51 | - | |
![]() | isLastDayOfMonth/ | 2023-06-19 12:51 | - | |
![]() | isLeapYear/ | 2023-06-19 12:51 | - | |
![]() | isMatch/ | 2023-06-19 12:51 | - | |
![]() | isMonday/ | 2023-06-19 12:51 | - | |
![]() | isPast/ | 2023-06-19 12:51 | - | |
![]() | isSameDay/ | 2023-06-19 12:51 | - | |
![]() | isSameHour/ | 2023-06-19 12:51 | - | |
![]() | isSameISOWeek/ | 2023-06-19 12:51 | - | |
![]() | isSameISOWeekYear/ | 2023-06-19 12:51 | - | |
![]() | isSameMinute/ | 2023-06-19 12:51 | - | |
![]() | isSameMonth/ | 2023-06-19 12:51 | - | |
![]() | isSameQuarter/ | 2023-06-19 12:51 | - | |
![]() | isSameSecond/ | 2023-06-19 12:51 | - | |
![]() | isSameWeek/ | 2023-06-19 12:51 | - | |
![]() | isSameYear/ | 2023-06-19 12:51 | - | |
![]() | isSaturday/ | 2023-06-19 12:51 | - | |
![]() | isSunday/ | 2023-06-19 12:51 | - | |
![]() | isThisHour/ | 2023-06-19 12:51 | - | |
![]() | isThisISOWeek/ | 2023-06-19 12:51 | - | |
![]() | isThisMinute/ | 2023-06-19 12:51 | - | |
![]() | isThisMonth/ | 2023-06-19 12:51 | - | |
![]() | isThisQuarter/ | 2023-06-19 12:51 | - | |
![]() | isThisSecond/ | 2023-06-19 12:51 | - | |
![]() | isThisWeek/ | 2023-06-19 12:51 | - | |
![]() | isThisYear/ | 2023-06-19 12:51 | - | |
![]() | isThursday/ | 2023-06-19 12:51 | - | |
![]() | isToday/ | 2023-06-19 12:51 | - | |
![]() | isTomorrow/ | 2023-06-19 12:51 | - | |
![]() | isTuesday/ | 2023-06-19 12:51 | - | |
![]() | isValid/ | 2023-06-19 12:51 | - | |
![]() | isWednesday/ | 2023-06-19 12:51 | - | |
![]() | isWeekend/ | 2023-06-19 12:51 | - | |
![]() | isWithinInterval/ | 2023-06-19 12:51 | - | |
![]() | isYesterday/ | 2023-06-19 12:51 | - | |
![]() | lastDayOfDecade/ | 2023-06-19 12:51 | - | |
![]() | lastDayOfISOWeek/ | 2023-06-19 12:51 | - | |
![]() | lastDayOfISOWeekYear/ | 2023-06-19 12:51 | - | |
![]() | lastDayOfMonth/ | 2023-06-19 12:51 | - | |
![]() | lastDayOfQuarter/ | 2023-06-19 12:51 | - | |
![]() | lastDayOfWeek/ | 2023-06-19 12:51 | - | |
![]() | lastDayOfYear/ | 2023-06-19 12:51 | - | |
![]() | lightFormat/ | 2023-06-19 12:51 | - | |
![]() | max/ | 2023-06-19 12:51 | - | |
![]() | milliseconds/ | 2023-06-19 12:51 | - | |
![]() | millisecondsToHours/ | 2023-06-19 12:51 | - | |
![]() | millisecondsToMinutes/ | 2023-06-19 12:51 | - | |
![]() | millisecondsToSeconds/ | 2023-06-19 12:51 | - | |
![]() | min/ | 2023-06-19 12:51 | - | |
![]() | minutesToHours/ | 2023-06-19 12:51 | - | |
![]() | minutesToMilliseconds/ | 2023-06-19 12:51 | - | |
![]() | minutesToSeconds/ | 2023-06-19 12:51 | - | |
![]() | monthsToQuarters/ | 2023-06-19 12:51 | - | |
![]() | monthsToYears/ | 2023-06-19 12:51 | - | |
![]() | nextDay/ | 2023-06-19 12:51 | - | |
![]() | nextFriday/ | 2023-06-19 12:51 | - | |
![]() | nextMonday/ | 2023-06-19 12:51 | - | |
![]() | nextSaturday/ | 2023-06-19 12:51 | - | |
![]() | nextSunday/ | 2023-06-19 12:51 | - | |
![]() | nextThursday/ | 2023-06-19 12:51 | - | |
![]() | nextTuesday/ | 2023-06-19 12:51 | - | |
![]() | nextWednesday/ | 2023-06-19 12:51 | - | |
![]() | parse/ | 2023-06-19 12:51 | - | |
![]() | parseISO/ | 2023-06-19 12:51 | - | |
![]() | parseJSON/ | 2023-06-19 12:51 | - | |
![]() | previousDay/ | 2023-06-19 12:51 | - | |
![]() | previousFriday/ | 2023-06-19 12:51 | - | |
![]() | previousMonday/ | 2023-06-19 12:51 | - | |
![]() | previousSaturday/ | 2023-06-19 12:51 | - | |
![]() | previousSunday/ | 2023-06-19 12:51 | - | |
![]() | previousThursday/ | 2023-06-19 12:51 | - | |
![]() | previousTuesday/ | 2023-06-19 12:51 | - | |
![]() | previousWednesday/ | 2023-06-19 12:51 | - | |
![]() | quartersToMonths/ | 2023-06-19 12:51 | - | |
![]() | quartersToYears/ | 2023-06-19 12:51 | - | |
![]() | roundToNearestMinutes/ | 2023-06-19 12:51 | - | |
![]() | secondsToHours/ | 2023-06-19 12:51 | - | |
![]() | secondsToMilliseconds/ | 2023-06-19 12:51 | - | |
![]() | secondsToMinutes/ | 2023-06-19 12:51 | - | |
![]() | set/ | 2023-06-19 12:51 | - | |
![]() | setDate/ | 2023-06-19 12:51 | - | |
![]() | setDay/ | 2023-06-19 12:51 | - | |
![]() | setDayOfYear/ | 2023-06-19 12:51 | - | |
![]() | setDefaultOptions/ | 2023-06-19 12:51 | - | |
![]() | setHours/ | 2023-06-19 12:51 | - | |
![]() | setISODay/ | 2023-06-19 12:51 | - | |
![]() | setISOWeek/ | 2023-06-19 12:51 | - | |
![]() | setISOWeekYear/ | 2023-06-19 12:51 | - | |
![]() | setMilliseconds/ | 2023-06-19 12:51 | - | |
![]() | setMinutes/ | 2023-06-19 12:51 | - | |
![]() | setMonth/ | 2023-06-19 12:51 | - | |
![]() | setQuarter/ | 2023-06-19 12:51 | - | |
![]() | setSeconds/ | 2023-06-19 12:51 | - | |
![]() | setWeek/ | 2023-06-19 12:51 | - | |
![]() | setWeekYear/ | 2023-06-19 12:51 | - | |
![]() | setYear/ | 2023-06-19 12:51 | - | |
![]() | startOfDay/ | 2023-06-19 12:51 | - | |
![]() | startOfDecade/ | 2023-06-19 12:51 | - | |
![]() | startOfHour/ | 2023-06-19 12:51 | - | |
![]() | startOfISOWeek/ | 2023-06-19 12:51 | - | |
![]() | startOfISOWeekYear/ | 2023-06-19 12:51 | - | |
![]() | startOfMinute/ | 2023-06-19 12:51 | - | |
![]() | startOfMonth/ | 2023-06-19 12:51 | - | |
![]() | startOfQuarter/ | 2023-06-19 12:51 | - | |
![]() | startOfSecond/ | 2023-06-19 12:51 | - | |
![]() | startOfToday/ | 2023-06-19 12:51 | - | |
![]() | startOfTomorrow/ | 2023-06-19 12:51 | - | |
![]() | startOfWeek/ | 2023-06-19 12:51 | - | |
![]() | startOfWeekYear/ | 2023-06-19 12:51 | - | |
![]() | startOfYear/ | 2023-06-19 12:51 | - | |
![]() | startOfYesterday/ | 2023-06-19 12:51 | - | |
![]() | sub/ | 2023-06-19 12:51 | - | |
![]() | subBusinessDays/ | 2023-06-19 12:51 | - | |
![]() | subDays/ | 2023-06-19 12:51 | - | |
![]() | subHours/ | 2023-06-19 12:51 | - | |
![]() | subISOWeekYears/ | 2023-06-19 12:51 | - | |
![]() | subMilliseconds/ | 2023-06-19 12:51 | - | |
![]() | subMinutes/ | 2023-06-19 12:51 | - | |
![]() | subMonths/ | 2023-06-19 12:51 | - | |
![]() | subQuarters/ | 2023-06-19 12:51 | - | |
![]() | subSeconds/ | 2023-06-19 12:51 | - | |
![]() | subWeeks/ | 2023-06-19 12:51 | - | |
![]() | subYears/ | 2023-06-19 12:51 | - | |
![]() | toDate/ | 2023-06-19 12:51 | - | |
![]() | weeksToDays/ | 2023-06-19 12:51 | - | |
![]() | yearsToMonths/ | 2023-06-19 12:51 | - | |
![]() | yearsToQuarters/ | 2023-06-19 12:51 | - | |
![]() | CHANGELOG.md | 1985-10-26 08:15 | 102K | |
![]() | LICENSE.md | 1985-10-26 08:15 | 1.1K | |
![]() | README.md | 1985-10-26 08:15 | 1.9K | |
![]() | index.js | 1985-10-26 08:15 | 54K | |
![]() | index.js.flow | 1985-10-26 08:15 | 21K | |
![]() | types.js | 1985-10-26 08:15 | 79 | |
![]() | typings.d.ts | 1985-10-26 08:15 | 589K | |
![]() | package.json | 2023-06-19 12:51 | 4.2K |
<p align="center"> <a href="https://date-fns.org/"> <img alt="date-fns" title="date-fns" src="https://raw.githubusercontent.com/date-fns/date-fns/master/docs/logotype.svg" width="300" /> </a> </p> <p align="center"> <b>date-fns</b> provides the most comprehensive, yet simple and consistent toolset <br> for manipulating <b>JavaScript dates</b> in <b>a browser</b> & <b>Node.js</b>.</b> </p> <div align="center"> [📖 Documentation](https://date-fns.org/docs/Getting-Started/) | [🧑💻 JavaScript Jobs](https://jobs.date-fns.org/) </div> <hr> # It's like [Lodash](https://lodash.com) for dates - It has [**200+ functions** for all occasions](https://date-fns.org/docs/Getting-Started/). - **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](https://date-fns.org/) ```js 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](https://www.npmjs.com/package/date-fns). To install the package run: ```bash npm install date-fns --save # or with yarn yarn add date-fns ``` ## Docs [See date-fns.org](https://date-fns.org/) for more details, API, and other docs. <br /> <!-- END OF README-JOB SECTION --> ## License [MIT © Sasha Koss](https://kossnocorp.mit-license.org/)