hunk.code_window:     expect(result).to.be.eql(new Date(2014, 11, 1, 22, 59, 59, 999))
     })
     it('supports string as a date', function() {
       var result = endOfHour('2014-12-01T13:00:00.000Z')
       expect(result).to.be.eql(new Date(Date.UTC(2014, 11, 1, 13, 59, 59, 999)))
     })
     it('supports timestamp as a date', function() {
       var result = endOfHour(new Date(2014, 11, 1, 22, 15).getTime())
  
hunk.labels: keep keep keep keep replace replace keep keep keep keep
hunk.after_edit:     var date = new Date(2014, 11, 1, 13).toISOString()
       var result = endOfHour(date)
       expect(result).to.be.eql(new Date(2014, 11, 1, 13, 59, 59, 999))
  
hunk.file_path: src/__tests__/end_of_hour_test.js
hunk.type: replace
file: var startOfISOYear = require('./start_of_iso_year')
  
  var MILLISECONDS_IN_WEEK = 604800000
  
  /**
   * Returns ISO week of given date.
   *
   * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
   *
   * @param {date|string} dirtyDate
   * @returns {number} (ISO week)
   *
   * @example which week of ISO-week numbering year is 2 January 2005
   * var result = getISOWeek(new Date(2005, 0, 2))
   * //=> 53
   */
  var getISOWeek = function(dirtyDate) {
    var date = new Date(dirtyDate)
    var diff = date.getTime() - startOfISOYear(date).getTime()
    return Math.floor(diff / MILLISECONDS_IN_WEEK) + 1
  }
  
  module.exports = getISOWeek
  
  