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