项目作者: palashmon
项目描述 :
Simplest case examples to learn about date-fns
高级语言: JavaScript
项目地址: git://github.com/palashmon/learn-date-fns.git
Learn date-fns
Simplest case examples to learn about date-fns.
This is a simple repo for learning about date-fns which is a modern javaScript date utility library.
Contents
Parse
- String + Date Format
- String + Time Format
- String + Format + locale
Get + Set
- Millisecond/Second/Minute/Hour
- Date of Month
- Day of Week
- Day of Year
- Week of Year
- Days in Month
- Weeks in Year
- Maximum of the given dates
- Minimum of the given dates
Manipulate
- Add
- Subtract
- Start of Time
- End of Time
Display
- Format
- Time from now
- Time from X
- Difference
Query
- Is Before
- Is Same
- Is After
- Is Between
- Is Leap Year
- Is a Date