Elm-Vega Time Unit Tests

Aggregating by Basic Time Units

Simulated data hourly over three years 2010-2012. The 2011 data on average 2 degrees higher than 2010 and in 2012, 4 degress higher.

Years

Aggregate by year
Aggregate by yearQuarter
Aggregate by yearQuarterMonth
Aggregate by yearMonth
Aggregate by yearMonthDate
Aggregate by yearMonthDateHours
Aggregate by yearMonthDateHoursMinutes
Aggregate by yearMonthDateHoursMinutesSeconds

Quarters

Aggregate by quarter
Aggregate by quarterMonth

Months

Aggregate by month
Aggregate by monthDate
Aggregate by monthDateHours
Aggregate by monthDateHoursMinutes
Aggregate by monthDateHoursMinutesSeconds

Days

Aggregate by day
Aggregate by dayHours
Aggregate by dayHoursMinutes
Aggregate by dayHoursMinutesSeconds

Date

Aggregate by date (day of month 1-31)

Hours

Aggregate by hours
Aggregate by hoursMinutes
Aggregate by hoursMinutesSeconds

Minutes

Aggregate by minutes
Aggregate by minutesSeconds

Seconds

Aggregate by seconds
Aggregate by secondsMilliseconds

Milliseconds

Aggregate by milliseconds

Local and UTC Times

Local time crossing daylight saving
UTC time crossing daylight saving

Positioning By Time Band

Each data point placed in middle (rather than default start) of each time band.

Source