Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 219 Bytes

File metadata and controls

14 lines (11 loc) · 219 Bytes

Default usage:

<DateDistance from={new Date('2018-03-01')} />

Usage with optional additional offset information:

<DateDistance
  from={new Date('2018-03-01')}
  offset={new Date('2018-03-15')}
/>