wc-relative-time
v1.0.0
Published
`<relative-time>` is a webcomponent for converting timestamp to user friendly relative time (e.g. 2 seconds ago, one week ago etc).
Downloads
1
Readme
<relative-time>
is a webcomponent for converting timestamp to user friendly relative time (e.g. 2 seconds ago, one week ago etc).
Examples:
<!-- displays relative time, e.g: "5 minutes ago" -->
<relative-time datetime="10/20/2015" locales="en"> </relative-time>