import distanceInWords from '../formatDistance/index' ; import requiredArgs from '../_lib/requiredArgs/index' ; import type { LocaleOptions } from '../types' ; name category summary pure description param { Date | Number } date param options param { Boolean } options . includeSeconds param { Boolean } options . addSuffix param { Locale } options . locale - the locale object. See [Locale] https returns { String } throws throws throws example example example example export default function formatDistanceToNow ( dirtyDate , options = { } ) { requiredArgs ( 1 , arguments ) ; return distanceInWords ( dirtyDate , Date . now ( ) , options ) ; }