Skip to content

Instantly share code, notes, and snippets.

@ijlyttle
ijlyttle / .block
Created August 3, 2018 14:40
leap-year issue
license: mit
height: 500
scrolling: yes
border: yes
@ijlyttle
ijlyttle / .block
Created August 3, 2018 04:56
leap-year issue
license: mit
height: 500
scrolling: yes
border: yes
license: mit
height: 500
scrolling: yes
border: yes
// reproduce problem setting system to "America/Los_Angeles"
date = new Date(Date.UTC(2011, 10, 06, 09, 00)); // 2011-11-06T09:00:00.000Z
console.log(date.toISOString())
date.setMinutes(0, 0, 0); // Should be a no-op!
console.log(date.toISOString()); // 2011-11-06T08:00:00.000Z
console.log()
// first-pass at solution
date = new Date(Date.UTC(2011, 10, 06, 09, 00)); // 2011-11-06T09:00:00.000Z
console.log(date.toISOString())

Timezones in Vega, Vega-Lite, Python, and R

It would be a great and wonderful thing for Vega and Vega-Lite to be time-zone aware. This document is an attempt to bring together how things might look, not only as implemented in Vega and Vega-Lite (where charts end up), but also how they might be implemented in Python and R (where a lot of charts are designed).

@ijlyttle
ijlyttle / .block
Last active July 27, 2018 22:07
Tooltip issue
license: mit
height: 500
scrolling: yes
border: yes
@ijlyttle
ijlyttle / .block
Last active July 27, 2018 22:09
Tooltip issue
license: mit
height: 500
scrolling: yes
border: yes
foo bar
gistr