Skip to content

Commit e261e73

Browse files
committed
Update docs
1 parent 6e0e9ba commit e261e73

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

API.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,15 @@ d
268268
..finished();
269269
```
270270

271-
| Method | Shorthand | Shorthand2 |
272-
| ------------------- | ---------------------------- | ----------------------- |
273-
| `.setYear()` | `setValue('year', 2020)` | `set('year', 2020)` |
274-
| `.setMonth()` | `setValue('month', 5)` | `set('month', 5)` |
275-
| `.setDate()` | `setValue('date', 1)` | `set('date', 1)` |
276-
| `.setHour()` | `setValue('hour', 11)` | `set('hour', 11)` |
277-
| `.setMinute()` | `setValue('minute', 31)` | `set('minute', 31)` |
278-
| `.setSecond()` | `setValue('second', 31)` | `set('second', 31)` |
279-
| `.setMillisecond()` | `setValue('millisecond', 1)` | `set('millisecond', 1)` |
271+
| Method | Shorthand | Shorthand2 |
272+
| ------------------- | ---------------------------- | ---------------- |
273+
| `.setYear()` | `setValue('year', 2020)` | `set('y', 2020)` |
274+
| `.setMonth()` | `setValue('month', 5)` | `set('M', 5)` |
275+
| `.setDate()` | `setValue('date', 1)` | `set('d', 1)` |
276+
| `.setHour()` | `setValue('hour', 11)` | `set('h', 11)` |
277+
| `.setMinute()` | `setValue('minute', 31)` | `set('m', 31)` |
278+
| `.setSecond()` | `setValue('second', 31)` | `set('s', 31)` |
279+
| `.setMillisecond()` | `setValue('millisecond', 1)` | `set('ms', 1)` |
280280

281281
## Manipulating
282282

I18N.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,22 @@ final Map<String, dynamic> Locale = {
4444
7: 'Sunday'
4545
},
4646
'AM': 'AM',
47-
'PM': 'PM'
47+
'PM': 'PM',
48+
'RelativeTime': {
49+
'future': 'in %s',
50+
'past': '%s ago',
51+
's': 'a few seconds',
52+
'm': 'a minute',
53+
'mm': '%d minutes',
54+
'h': 'an hour',
55+
'hh': '%d hours',
56+
'd': 'a day',
57+
'dd': '%d days',
58+
'M': 'a month',
59+
'MM': '%d months',
60+
'y': 'a year',
61+
'yy': '%d years'
62+
}
4863
};
4964
```
5065

0 commit comments

Comments
 (0)