forked from bigeasy/timezone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
months.t.js
31 lines (29 loc) · 1.6 KB
/
months.t.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require('proof')(24, function (assert) {
var tz = require('timezone')(require('timezone/nl_BE'))
// nl_BE abbreviated months
assert(tz('2000-01-01', '%b', 'nl_BE'), 'jan', 'Jan')
assert(tz('2000-02-01', '%b', 'nl_BE'), 'feb', 'Feb')
assert(tz('2000-03-01', '%b', 'nl_BE'), 'mrt', 'Mar')
assert(tz('2000-04-01', '%b', 'nl_BE'), 'apr', 'Apr')
assert(tz('2000-05-01', '%b', 'nl_BE'), 'mei', 'May')
assert(tz('2000-06-01', '%b', 'nl_BE'), 'jun', 'Jun')
assert(tz('2000-07-01', '%b', 'nl_BE'), 'jul', 'Jul')
assert(tz('2000-08-01', '%b', 'nl_BE'), 'aug', 'Aug')
assert(tz('2000-09-01', '%b', 'nl_BE'), 'sep', 'Sep')
assert(tz('2000-10-01', '%b', 'nl_BE'), 'okt', 'Oct')
assert(tz('2000-11-01', '%b', 'nl_BE'), 'nov', 'Nov')
assert(tz('2000-12-01', '%b', 'nl_BE'), 'dec', 'Dec')
// ' + name + ' months
assert(tz('2000-01-01', '%B', 'nl_BE'), 'januari', 'January')
assert(tz('2000-02-01', '%B', 'nl_BE'), 'februari', 'February')
assert(tz('2000-03-01', '%B', 'nl_BE'), 'maart', 'March')
assert(tz('2000-04-01', '%B', 'nl_BE'), 'april', 'April')
assert(tz('2000-05-01', '%B', 'nl_BE'), 'mei', 'May')
assert(tz('2000-06-01', '%B', 'nl_BE'), 'juni', 'June')
assert(tz('2000-07-01', '%B', 'nl_BE'), 'juli', 'July')
assert(tz('2000-08-01', '%B', 'nl_BE'), 'augustus', 'August')
assert(tz('2000-09-01', '%B', 'nl_BE'), 'september', 'September')
assert(tz('2000-10-01', '%B', 'nl_BE'), 'oktober', 'October')
assert(tz('2000-11-01', '%B', 'nl_BE'), 'november', 'November')
assert(tz('2000-12-01', '%B', 'nl_BE'), 'december', 'December')
})