项目作者: palashmon

项目描述 :
Simplest case examples to learn about date-fns
高级语言: JavaScript
项目地址: git://github.com/palashmon/learn-date-fns.git
创建时间: 2018-09-17T13:26:50Z
项目社区:https://github.com/palashmon/learn-date-fns

开源协议:

下载


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

  1. String + Date Format
  2. String + Time Format
  3. String + Format + locale

Get + Set

  1. Millisecond/Second/Minute/Hour
  2. Date of Month
  3. Day of Week
  4. Day of Year
  5. Week of Year
  6. Days in Month
  7. Weeks in Year
  8. Maximum of the given dates
  9. Minimum of the given dates

Manipulate

  1. Add
  2. Subtract
  3. Start of Time
  4. End of Time

Display

  1. Format
  2. Time from now
  3. Time from X
  4. Difference

Query

  1. Is Before
  2. Is Same
  3. Is After
  4. Is Between
  5. Is Leap Year
  6. Is a Date