         return dates
 
       month_dates = date_range_by_month(data_low, data_high)
-      console.log("months: #{month_dates}")
 
       # FIXME Is there a better way to deal with this?
       days = @days

  ONE_MINUTE = 60.0 * ONE_SECOND
  ONE_HOUR = 60 * ONE_MINUTE
  ONE_DAY = 24 * ONE_HOUR

  global_scale = new CompositeScale([
    # Sub-second.

    d.setMilliseconds(0)
    return d.getTime()

  last_year_no_later_than = (time) ->
    d = new Date(time)
    d.setMonth(0)
    d.setDate(1)
    d.setHours(0)
    d.setMinutes(0)
    d.setSeconds(0)
    d.setMilliseconds(0)
    return d.getTime()

  copy_date = (date) ->
    return new Date(date.getTime())

  add_days = (time, n_days) ->
    d = new Date(time)
    d.setDate(d.getDate() + n_days)
