Skip to content

Commit

Permalink
docs: update plugin docs
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed Dec 13, 2018
1 parent 3017665 commit d8fae84
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 6 deletions.
24 changes: 23 additions & 1 deletion docs/en/Plugin.md
Expand Up @@ -155,6 +155,28 @@ dayjs.extend(weekOfYear)
dayjs('06/27/2018').week() // 26
```

### IsSameOrAfter
- IsSameOrAfter adds `.isSameOrAfter()` API to returns a `boolean` indicating if a date is same of after another date.

```javascript
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'

dayjs.extend(isSameOrAfter)

dayjs('2010-10-20').isSameOrAfter('2010-10-19', 'year');
```

### IsSameOrBefore
- IsSameOrBefore adds `.isSameOrBefore()` API to returns a `boolean` indicating if a date is same of before another date.

```javascript
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'

dayjs.extend(isSameOrBefore)

dayjs('2010-10-20').isSameOrBefore('2010-10-19', 'year');
```

### IsBetween
- IsBetween adds `.isBetween()` API to returns a `boolean` indicating if a date is between two other dates.

Expand All @@ -163,7 +185,7 @@ import isBetween from 'dayjs/plugin/isBetween'

dayjs.extend(isBetween)

dayjs('2010-10-20').isBetween('2010-10-19', dayjs('2010-10-25')); // true
dayjs('2010-10-20').isBetween('2010-10-19', dayjs('2010-10-25'), 'year');
```

## Customize
Expand Down
24 changes: 23 additions & 1 deletion docs/es-es/Plugin.md
Expand Up @@ -161,6 +161,28 @@ dayjs.extend(weekOfYear)
dayjs('06/27/2018').week() // 26
```

### IsSameOrAfter
- IsSameOrAfter adds `.isSameOrAfter()` API to returns a `boolean` indicating if a date is same of after another date.

```javascript
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'

dayjs.extend(isSameOrAfter)

dayjs('2010-10-20').isSameOrAfter('2010-10-19', 'year');
```

### IsSameOrBefore
- IsSameOrBefore adds `.isSameOrBefore()` API to returns a `boolean` indicating if a date is same of before another date.

```javascript
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'

dayjs.extend(isSameOrBefore)

dayjs('2010-10-20').isSameOrBefore('2010-10-19', 'year');
```

### IsBetween

* IsBetween añade la API `.isBetween()`, que devuelve un dato de tipo `boolean` indicando si una fecha se encuentra o no entre otras dos dadas.
Expand All @@ -170,7 +192,7 @@ import isBetween from 'dayjs/plugin/isBetween'

dayjs.extend(isBetween)

dayjs('2010-10-20').isBetween('2010-10-19', dayjs('2010-10-25')); // true
dayjs('2010-10-20').isBetween('2010-10-19', dayjs('2010-10-25'), 'year');
```

## Personalización
Expand Down
23 changes: 22 additions & 1 deletion docs/ja/Plugin.md
Expand Up @@ -155,6 +155,27 @@ dayjs.extend(weekOfYear)

dayjs('06/27/2018').week() // 26
```
### IsSameOrAfter
- IsSameOrAfter adds `.isSameOrAfter()` API to returns a `boolean` indicating if a date is same of after another date.

```javascript
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'

dayjs.extend(isSameOrAfter)

dayjs('2010-10-20').isSameOrAfter('2010-10-19', 'year');
```

### IsSameOrBefore
- IsSameOrBefore adds `.isSameOrBefore()` API to returns a `boolean` indicating if a date is same of before another date.

```javascript
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'

dayjs.extend(isSameOrBefore)

dayjs('2010-10-20').isSameOrBefore('2010-10-19', 'year');
```

### IsBetween
- IsBetween adds `.isBetween()` API to returns a `boolean` indicating if a date is between two other dates.
Expand All @@ -164,7 +185,7 @@ import isBetween from 'dayjs/plugin/isBetween'

dayjs.extend(isBetween)

dayjs('2010-10-20').isBetween('2010-10-19', dayjs('2010-10-25')); // true
dayjs('2010-10-20').isBetween('2010-10-19', dayjs('2010-10-25'), 'year');
```

## カスタマイズ
Expand Down
24 changes: 23 additions & 1 deletion docs/ko/Plugin.md
Expand Up @@ -155,6 +155,28 @@ dayjs.extend(weekOfYear)
dayjs('06/27/2018').week() // 26
```

### IsSameOrAfter
- IsSameOrAfter adds `.isSameOrAfter()` API to returns a `boolean` indicating if a date is same of after another date.

```javascript
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'

dayjs.extend(isSameOrAfter)

dayjs('2010-10-20').isSameOrAfter('2010-10-19', 'year');
```

### IsSameOrBefore
- IsSameOrBefore adds `.isSameOrBefore()` API to returns a `boolean` indicating if a date is same of before another date.

```javascript
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'

dayjs.extend(isSameOrBefore)

dayjs('2010-10-20').isSameOrBefore('2010-10-19', 'year');
```

### IsBetween
- IsBetween adds `.isBetween()` API to returns a `boolean` indicating if a date is between two other dates.

Expand All @@ -163,7 +185,7 @@ import isBetween from 'dayjs/plugin/isBetween'

dayjs.extend(isBetween)

dayjs('2010-10-20').isBetween('2010-10-19', dayjs('2010-10-25')); // true
dayjs('2010-10-20').isBetween('2010-10-19', dayjs('2010-10-25'), 'year');
```

## Customize
Expand Down
24 changes: 23 additions & 1 deletion docs/pt-br/Plugin.md
Expand Up @@ -155,6 +155,28 @@ dayjs.extend(weekOfYear)
dayjs('06/27/2018').week() // 26
```

### IsSameOrAfter
- IsSameOrAfter adds `.isSameOrAfter()` API to returns a `boolean` indicating if a date is same of after another date.

```javascript
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'

dayjs.extend(isSameOrAfter)

dayjs('2010-10-20').isSameOrAfter('2010-10-19', 'year');
```

### IsSameOrBefore
- IsSameOrBefore adds `.isSameOrBefore()` API to returns a `boolean` indicating if a date is same of before another date.

```javascript
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'

dayjs.extend(isSameOrBefore)

dayjs('2010-10-20').isSameOrBefore('2010-10-19', 'year');
```

### IsBetween
- IsBetween adiciona `.isBetween()` à API para retornar um `boolean` indicando se a data está entre outras duas datas.

Expand All @@ -163,7 +185,7 @@ import isBetween from 'dayjs/plugin/isBetween'

dayjs.extend(isBetween)

dayjs('2010-10-20').isBetween('2010-10-19', dayjs('2010-10-25')); // true
dayjs('2010-10-20').isBetween('2010-10-19', dayjs('2010-10-25'), 'year');
```

## Customizar
Expand Down
24 changes: 23 additions & 1 deletion docs/zh-cn/Plugin.md
Expand Up @@ -155,6 +155,28 @@ dayjs.extend(weekOfYear)
dayjs('06/27/2018').week() // 26
```

### IsSameOrAfter
- IsSameOrAfter 增加了 `.isSameOrAfter()` API 返回一个 `boolean` 来展示一个时间是否和一个时间相同或在一个时间之后.

```javascript
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'

dayjs.extend(isSameOrAfter)

dayjs('2010-10-20').isSameOrAfter('2010-10-19', 'year');
```

### IsSameOrBefore
- IsSameOrBefore 增加了 `.isSameOrBefore()` API 返回一个 `boolean` 来展示一个时间是否和一个时间相同或在一个时间之前.

```javascript
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'

dayjs.extend(isSameOrBefore)

dayjs('2010-10-20').isSameOrBefore('2010-10-19', 'year');
```

### IsBetween
- IsBetween 增加了 `.isBetween()` API 返回一个 `boolean` 来展示一个时间是否介于两个时间之间.

Expand All @@ -163,7 +185,7 @@ import isBetween from 'dayjs/plugin/isBetween'

dayjs.extend(isBetween)

dayjs('2010-10-20').isBetween('2010-10-19', dayjs('2010-10-25')); // true
dayjs('2010-10-20').isBetween('2010-10-19', dayjs('2010-10-25'), 'year');
```

## 自定义
Expand Down

0 comments on commit d8fae84

Please sign in to comment.