1 | import approximate from '../steps/approximate'; // "gradation" is a legacy name for "steps".
|
2 | // It's here just for legacy compatibility.
|
3 | // Use "steps" name instead.
|
4 | // "flavour" is a legacy name for "labels".
|
5 | // It's here just for legacy compatibility.
|
6 | // Use "labels" name instead.
|
7 | // "units" is a legacy property.
|
8 | // It's here just for legacy compatibility.
|
9 | // Developers shouldn't need to use it in their custom styles.
|
10 | // Similar to the default style but with "ago" omitted.
|
11 | //
|
12 | // just now
|
13 | // 5 minutes
|
14 | // 10 minutes
|
15 | // 15 minutes
|
16 | // 20 minutes
|
17 | // an hour
|
18 | // 2 hours
|
19 | // …
|
20 | // 20 hours
|
21 | // 1 day
|
22 | // 2 days
|
23 | // a week
|
24 | // 2 weeks
|
25 | // 3 weeks
|
26 | // a month
|
27 | // 2 months
|
28 | // 3 months
|
29 | // 4 months
|
30 | // a year
|
31 | // 2 years
|
32 | //
|
33 |
|
34 | export default {
|
35 | gradation: approximate,
|
36 | flavour: 'long-time',
|
37 | units: ['now', 'minute', 'hour', 'day', 'week', 'month', 'year']
|
38 | };
|
39 | //# sourceMappingURL=approximateTime.js.map |
\ | No newline at end of file |