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