Skip to content

Commit 7a2553d

Browse files
committed
Add en_GB locale for d3.time.format.
1 parent b0686e2 commit 7a2553d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/time/format-en_GB.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// The date and time format (%c), date format (%x) and time format (%X).
2+
var d3_time_formatDateTime = "%a %b %e %H:%M:%S %Y",
3+
d3_time_formatDate = "%d/%m/%y",
4+
d3_time_formatTime = "%H:%M:%S";
5+
6+
// The weekday and month names.
7+
var d3_time_days = d3_time_daySymbols,
8+
d3_time_dayAbbreviations = d3_time_days.map(d3_time_formatAbbreviate),
9+
d3_time_months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
10+
d3_time_monthAbbreviations = d3_time_months.map(d3_time_formatAbbreviate);
11+
12+
function d3_time_formatAbbreviate(name) {
13+
return name.substring(0, 3);
14+
}

0 commit comments

Comments
 (0)