travel/admin/node_modules/date-fns
yaosen 242417d45d init... 2024-06-24 11:28:18 +08:00
..
_lib init... 2024-06-24 11:28:18 +08:00
add_days init... 2024-06-24 11:28:18 +08:00
add_hours init... 2024-06-24 11:28:18 +08:00
add_iso_years init... 2024-06-24 11:28:18 +08:00
add_milliseconds init... 2024-06-24 11:28:18 +08:00
add_minutes init... 2024-06-24 11:28:18 +08:00
add_months init... 2024-06-24 11:28:18 +08:00
add_quarters init... 2024-06-24 11:28:18 +08:00
add_seconds init... 2024-06-24 11:28:18 +08:00
add_weeks init... 2024-06-24 11:28:18 +08:00
add_years init... 2024-06-24 11:28:18 +08:00
are_ranges_overlapping init... 2024-06-24 11:28:18 +08:00
closest_index_to init... 2024-06-24 11:28:18 +08:00
closest_to init... 2024-06-24 11:28:18 +08:00
compare_asc init... 2024-06-24 11:28:18 +08:00
compare_desc init... 2024-06-24 11:28:18 +08:00
difference_in_calendar_days init... 2024-06-24 11:28:18 +08:00
difference_in_calendar_iso_weeks init... 2024-06-24 11:28:18 +08:00
difference_in_calendar_iso_years init... 2024-06-24 11:28:18 +08:00
difference_in_calendar_months init... 2024-06-24 11:28:18 +08:00
difference_in_calendar_quarters init... 2024-06-24 11:28:18 +08:00
difference_in_calendar_weeks init... 2024-06-24 11:28:18 +08:00
difference_in_calendar_years init... 2024-06-24 11:28:18 +08:00
difference_in_days init... 2024-06-24 11:28:18 +08:00
difference_in_hours init... 2024-06-24 11:28:18 +08:00
difference_in_iso_years init... 2024-06-24 11:28:18 +08:00
difference_in_milliseconds init... 2024-06-24 11:28:18 +08:00
difference_in_minutes init... 2024-06-24 11:28:18 +08:00
difference_in_months init... 2024-06-24 11:28:18 +08:00
difference_in_quarters init... 2024-06-24 11:28:18 +08:00
difference_in_seconds init... 2024-06-24 11:28:18 +08:00
difference_in_weeks init... 2024-06-24 11:28:18 +08:00
difference_in_years init... 2024-06-24 11:28:18 +08:00
distance_in_words init... 2024-06-24 11:28:18 +08:00
distance_in_words_strict init... 2024-06-24 11:28:18 +08:00
distance_in_words_to_now init... 2024-06-24 11:28:18 +08:00
each_day init... 2024-06-24 11:28:18 +08:00
end_of_day init... 2024-06-24 11:28:18 +08:00
end_of_hour init... 2024-06-24 11:28:18 +08:00
end_of_iso_week init... 2024-06-24 11:28:18 +08:00
end_of_iso_year init... 2024-06-24 11:28:18 +08:00
end_of_minute init... 2024-06-24 11:28:18 +08:00
end_of_month init... 2024-06-24 11:28:18 +08:00
end_of_quarter init... 2024-06-24 11:28:18 +08:00
end_of_second init... 2024-06-24 11:28:18 +08:00
end_of_today init... 2024-06-24 11:28:18 +08:00
end_of_tomorrow init... 2024-06-24 11:28:18 +08:00
end_of_week init... 2024-06-24 11:28:18 +08:00
end_of_year init... 2024-06-24 11:28:18 +08:00
end_of_yesterday init... 2024-06-24 11:28:18 +08:00
format init... 2024-06-24 11:28:18 +08:00
get_date init... 2024-06-24 11:28:18 +08:00
get_day init... 2024-06-24 11:28:18 +08:00
get_day_of_year init... 2024-06-24 11:28:18 +08:00
get_days_in_month init... 2024-06-24 11:28:18 +08:00
get_days_in_year init... 2024-06-24 11:28:18 +08:00
get_hours init... 2024-06-24 11:28:18 +08:00
get_iso_day init... 2024-06-24 11:28:18 +08:00
get_iso_week init... 2024-06-24 11:28:18 +08:00
get_iso_weeks_in_year init... 2024-06-24 11:28:18 +08:00
get_iso_year init... 2024-06-24 11:28:18 +08:00
get_milliseconds init... 2024-06-24 11:28:18 +08:00
get_minutes init... 2024-06-24 11:28:18 +08:00
get_month init... 2024-06-24 11:28:18 +08:00
get_overlapping_days_in_ranges init... 2024-06-24 11:28:18 +08:00
get_quarter init... 2024-06-24 11:28:18 +08:00
get_seconds init... 2024-06-24 11:28:18 +08:00
get_time init... 2024-06-24 11:28:18 +08:00
get_year init... 2024-06-24 11:28:18 +08:00
is_after init... 2024-06-24 11:28:18 +08:00
is_before init... 2024-06-24 11:28:18 +08:00
is_date init... 2024-06-24 11:28:18 +08:00
is_equal init... 2024-06-24 11:28:18 +08:00
is_first_day_of_month init... 2024-06-24 11:28:18 +08:00
is_friday init... 2024-06-24 11:28:18 +08:00
is_future init... 2024-06-24 11:28:18 +08:00
is_last_day_of_month init... 2024-06-24 11:28:18 +08:00
is_leap_year init... 2024-06-24 11:28:18 +08:00
is_monday init... 2024-06-24 11:28:18 +08:00
is_past init... 2024-06-24 11:28:18 +08:00
is_same_day init... 2024-06-24 11:28:18 +08:00
is_same_hour init... 2024-06-24 11:28:18 +08:00
is_same_iso_week init... 2024-06-24 11:28:18 +08:00
is_same_iso_year init... 2024-06-24 11:28:18 +08:00
is_same_minute init... 2024-06-24 11:28:18 +08:00
is_same_month init... 2024-06-24 11:28:18 +08:00
is_same_quarter init... 2024-06-24 11:28:18 +08:00
is_same_second init... 2024-06-24 11:28:18 +08:00
is_same_week init... 2024-06-24 11:28:18 +08:00
is_same_year init... 2024-06-24 11:28:18 +08:00
is_saturday init... 2024-06-24 11:28:18 +08:00
is_sunday init... 2024-06-24 11:28:18 +08:00
is_this_hour init... 2024-06-24 11:28:18 +08:00
is_this_iso_week init... 2024-06-24 11:28:18 +08:00
is_this_iso_year init... 2024-06-24 11:28:18 +08:00
is_this_minute init... 2024-06-24 11:28:18 +08:00
is_this_month init... 2024-06-24 11:28:18 +08:00
is_this_quarter init... 2024-06-24 11:28:18 +08:00
is_this_second init... 2024-06-24 11:28:18 +08:00
is_this_week init... 2024-06-24 11:28:18 +08:00
is_this_year init... 2024-06-24 11:28:18 +08:00
is_thursday init... 2024-06-24 11:28:18 +08:00
is_today init... 2024-06-24 11:28:18 +08:00
is_tomorrow init... 2024-06-24 11:28:18 +08:00
is_tuesday init... 2024-06-24 11:28:18 +08:00
is_valid init... 2024-06-24 11:28:18 +08:00
is_wednesday init... 2024-06-24 11:28:18 +08:00
is_weekend init... 2024-06-24 11:28:18 +08:00
is_within_range init... 2024-06-24 11:28:18 +08:00
is_yesterday init... 2024-06-24 11:28:18 +08:00
last_day_of_iso_week init... 2024-06-24 11:28:18 +08:00
last_day_of_iso_year init... 2024-06-24 11:28:18 +08:00
last_day_of_month init... 2024-06-24 11:28:18 +08:00
last_day_of_quarter init... 2024-06-24 11:28:18 +08:00
last_day_of_week init... 2024-06-24 11:28:18 +08:00
last_day_of_year init... 2024-06-24 11:28:18 +08:00
locale init... 2024-06-24 11:28:18 +08:00
max init... 2024-06-24 11:28:18 +08:00
min init... 2024-06-24 11:28:18 +08:00
parse init... 2024-06-24 11:28:18 +08:00
set_date init... 2024-06-24 11:28:18 +08:00
set_day init... 2024-06-24 11:28:18 +08:00
set_day_of_year init... 2024-06-24 11:28:18 +08:00
set_hours init... 2024-06-24 11:28:18 +08:00
set_iso_day init... 2024-06-24 11:28:18 +08:00
set_iso_week init... 2024-06-24 11:28:18 +08:00
set_iso_year init... 2024-06-24 11:28:18 +08:00
set_milliseconds init... 2024-06-24 11:28:18 +08:00
set_minutes init... 2024-06-24 11:28:18 +08:00
set_month init... 2024-06-24 11:28:18 +08:00
set_quarter init... 2024-06-24 11:28:18 +08:00
set_seconds init... 2024-06-24 11:28:18 +08:00
set_year init... 2024-06-24 11:28:18 +08:00
start_of_day init... 2024-06-24 11:28:18 +08:00
start_of_hour init... 2024-06-24 11:28:18 +08:00
start_of_iso_week init... 2024-06-24 11:28:18 +08:00
start_of_iso_year init... 2024-06-24 11:28:18 +08:00
start_of_minute init... 2024-06-24 11:28:18 +08:00
start_of_month init... 2024-06-24 11:28:18 +08:00
start_of_quarter init... 2024-06-24 11:28:18 +08:00
start_of_second init... 2024-06-24 11:28:18 +08:00
start_of_today init... 2024-06-24 11:28:18 +08:00
start_of_tomorrow init... 2024-06-24 11:28:18 +08:00
start_of_week init... 2024-06-24 11:28:18 +08:00
start_of_year init... 2024-06-24 11:28:18 +08:00
start_of_yesterday init... 2024-06-24 11:28:18 +08:00
sub_days init... 2024-06-24 11:28:18 +08:00
sub_hours init... 2024-06-24 11:28:18 +08:00
sub_iso_years init... 2024-06-24 11:28:18 +08:00
sub_milliseconds init... 2024-06-24 11:28:18 +08:00
sub_minutes init... 2024-06-24 11:28:18 +08:00
sub_months init... 2024-06-24 11:28:18 +08:00
sub_quarters init... 2024-06-24 11:28:18 +08:00
sub_seconds init... 2024-06-24 11:28:18 +08:00
sub_weeks init... 2024-06-24 11:28:18 +08:00
sub_years init... 2024-06-24 11:28:18 +08:00
CHANGELOG.md init... 2024-06-24 11:28:18 +08:00
LICENSE.md init... 2024-06-24 11:28:18 +08:00
README.md init... 2024-06-24 11:28:18 +08:00
docs.json init... 2024-06-24 11:28:18 +08:00
index.js init... 2024-06-24 11:28:18 +08:00
package.json init... 2024-06-24 11:28:18 +08:00
typings.d.ts init... 2024-06-24 11:28:18 +08:00

README.md

date-fns

Pinned: see a brief comparison with Moment.js.

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

date-fns is like lodash for dates. It has 140+ functions for all occasions.

dateFns.format(new Date(2014, 1, 11), 'MM/DD/YYYY')
//=> '02/11/2014'

var dates = [new Date(1995, 6, 2), new Date(1987, 1, 11), new Date(1989, 6, 10)]
dates.sort(dateFns.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, a Bower package. To install a package run:

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

Also, you can simply download the library from the releases page.

Docs

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

License

MIT © Sasha Koss