live-datetime

StencilJS web component for displaying timestamps in relative terms that automatically update

Usage no npm install needed!

<script type="module">
  import liveDatetime from 'https://cdn.skypack.dev/live-datetime';
</script>

README

Built With Stencil

StencilJS Live Datetime Component

This is a StencilJS Web Component that displays a datetime value relative to the current time. It is live updated as time goes on.

Status

This component is in early development. User beware!

Usage

Install as with any StencilJS component. TOOD: details.

<live-datetime datetime="2021-01-05T12:00:00" />

The datetime attribute can be any format that Moment.js can parse.