forked from bigeasy/timezone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
days.t.js
executable file
·21 lines (20 loc) · 1.01 KB
/
days.t.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env node
require("../../proof")(14, function (tz, equal) {
var tz = tz(require("timezone/nl_BE"));
// nl_BE abbreviated days of week
equal(tz("2006-01-01", "%a", "nl_BE"), "zo", "Sun");
equal(tz("2006-01-02", "%a", "nl_BE"), "ma", "Mon");
equal(tz("2006-01-03", "%a", "nl_BE"), "di", "Tue");
equal(tz("2006-01-04", "%a", "nl_BE"), "wo", "Wed");
equal(tz("2006-01-05", "%a", "nl_BE"), "do", "Thu");
equal(tz("2006-01-06", "%a", "nl_BE"), "vr", "Fri");
equal(tz("2006-01-07", "%a", "nl_BE"), "za", "Sat");
// nl_BE days of week
equal(tz("2006-01-01", "%A", "nl_BE"), "zondag", "Sunday");
equal(tz("2006-01-02", "%A", "nl_BE"), "maandag", "Monday");
equal(tz("2006-01-03", "%A", "nl_BE"), "dinsdag", "Tuesday");
equal(tz("2006-01-04", "%A", "nl_BE"), "woensdag", "Wednesday");
equal(tz("2006-01-05", "%A", "nl_BE"), "donderdag", "Thursday");
equal(tz("2006-01-06", "%A", "nl_BE"), "vrijdag", "Friday");
equal(tz("2006-01-07", "%A", "nl_BE"), "zaterdag", "Saturday");
});