import toInteger from '../_lib/toInteger/index' ; import addMilliseconds from '../addMilliseconds/index' ; import requiredArgs from '../_lib/requiredArgs/index' ; const MILLISECONDS_IN_HOUR = 3600000 ; name category summary description param { Date | Number } date param { Number } amount returns { Date } throws example export default function addHours ( dirtyDate , dirtyAmount ) { requiredArgs ( 2 , arguments ) ; const amount = toInteger ( dirtyAmount ) ; return addMilliseconds ( dirtyDate , amount * MILLISECONDS_IN_HOUR ) ; }