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

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