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

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