Skip to content

Commit

Permalink
Merge pull request d3#761 from jasondavies/time-en_GB
Browse files Browse the repository at this point in the history
Add en_GB locale for d3.time.format.
  • Loading branch information
mbostock committed Aug 12, 2012
2 parents b0686e2 + 7a2553d commit 38a6c30
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/time/format-en_GB.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// The date and time format (%c), date format (%x) and time format (%X).
var d3_time_formatDateTime = "%a %b %e %H:%M:%S %Y",
d3_time_formatDate = "%d/%m/%y",
d3_time_formatTime = "%H:%M:%S";

// The weekday and month names.
var d3_time_days = d3_time_daySymbols,
d3_time_dayAbbreviations = d3_time_days.map(d3_time_formatAbbreviate),
d3_time_months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
d3_time_monthAbbreviations = d3_time_months.map(d3_time_formatAbbreviate);

function d3_time_formatAbbreviate(name) {
return name.substring(0, 3);
}

0 comments on commit 38a6c30

Please sign in to comment.