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/es_VE'))
// es_VE abbreviated months
assert(tz('2000-01-01', '%b', 'es_VE'), 'ene', 'Jan')
assert(tz('2000-02-01', '%b', 'es_VE'), 'feb', 'Feb')
assert(tz('2000-03-01', '%b', 'es_VE'), 'mar', 'Mar')
assert(tz('2000-04-01', '%b', 'es_VE'), 'abr', 'Apr')
assert(tz('2000-05-01', '%b', 'es_VE'), 'may', 'May')
assert(tz('2000-06-01', '%b', 'es_VE'), 'jun', 'Jun')
assert(tz('2000-07-01', '%b', 'es_VE'), 'jul', 'Jul')
assert(tz('2000-08-01', '%b', 'es_VE'), 'ago', 'Aug')
assert(tz('2000-09-01', '%b', 'es_VE'), 'sep', 'Sep')
assert(tz('2000-10-01', '%b', 'es_VE'), 'oct', 'Oct')
assert(tz('2000-11-01', '%b', 'es_VE'), 'nov', 'Nov')
assert(tz('2000-12-01', '%b', 'es_VE'), 'dic', 'Dec')
// ' + name + ' months
assert(tz('2000-01-01', '%B', 'es_VE'), 'enero', 'January')
assert(tz('2000-02-01', '%B', 'es_VE'), 'febrero', 'February')
assert(tz('2000-03-01', '%B', 'es_VE'), 'marzo', 'March')
assert(tz('2000-04-01', '%B', 'es_VE'), 'abril', 'April')
assert(tz('2000-05-01', '%B', 'es_VE'), 'mayo', 'May')
assert(tz('2000-06-01', '%B', 'es_VE'), 'junio', 'June')
assert(tz('2000-07-01', '%B', 'es_VE'), 'julio', 'July')
assert(tz('2000-08-01', '%B', 'es_VE'), 'agosto', 'August')
assert(tz('2000-09-01', '%B', 'es_VE'), 'septiembre', 'September')
assert(tz('2000-10-01', '%B', 'es_VE'), 'octubre', 'October')
assert(tz('2000-11-01', '%B', 'es_VE'), 'noviembre', 'November')
assert(tz('2000-12-01', '%B', 'es_VE'), 'diciembre', 'December')
})