Sha256: cc2a68a2ca5e07d0b9e9c2de8201192c2ff65b8e6fa6d3d79b9a90a9cac2c0c1
Contents?: true
Size: 1.55 KB
Versions: 6
Compression:
Stored size: 1.55 KB
Contents
d3.time.format.utc = function(template) { var local = d3.time.format(template); function format(date) { var utc = new d3_time_format_utc(); utc._ = date; return local(utc); } format.parse = function(string) { try { d3_time = d3_time_format_utc; var date = local.parse(string); return date && date._; } finally { d3_time = Date; } }; format.toString = local.toString; return format; }; function d3_time_format_utc() { this._ = new Date(Date.UTC.apply(this, arguments)); } d3_time_format_utc.prototype = { getDate: function() { return this._.getUTCDate(); }, getDay: function() { return this._.getUTCDay(); }, getFullYear: function() { return this._.getUTCFullYear(); }, getHours: function() { return this._.getUTCHours(); }, getMilliseconds: function() { return this._.getUTCMilliseconds(); }, getMinutes: function() { return this._.getUTCMinutes(); }, getMonth: function() { return this._.getUTCMonth(); }, getSeconds: function() { return this._.getUTCSeconds(); }, getTimezoneOffset: function() { return 0; }, valueOf: function() { return this._.getTime(); }, setDate: function(x) { this._.setUTCDate(x); }, setDay: function(x) { this._.setUTCDay(x); }, setFullYear: function(x) { this._.setUTCFullYear(x); }, setHours: function(x) { this._.setUTCHours(x); }, setMilliseconds: function(x) { this._.setUTCMilliseconds(x); }, setMinutes: function(x) { this._.setUTCMinutes(x); }, setMonth: function(x) { this._.setUTCMonth(x); }, setSeconds: function(x) { this._.setUTCSeconds(x); } };
Version data entries
6 entries across 6 versions & 1 rubygems