Feature Parity
⚠️ Indicates other packages or work are needed. See individual functions above.
Native | Luxon | date-fns | dayjs | |
---|---|---|---|---|
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 | ✅ | ✅ | ✅ | ✅ |
License
MIT
当前内容版权归 you-dont-need 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 you-dont-need .