how-long-time-ago
v1.1.15
Published
Get time ago just putting date in prop
Downloads
6
Maintainers
Readme
How to Use
import {TimeAgo} from 'how-long-time-ago';
function App() { return (
<TimeAgo date={'Sat Jun 26 2021 21:12:43'} style={{fontSize:20}} suffix={true} /> ); }
expected response(example): 3 days ago
#Props
date: You can pass date from which you find time ago (default local date). style: You can giv custom style using style props (default no style). suffix: You can display "ago" keyword coditionally by passing suffix props (default true).