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