@swivel/ui/elements/time

TimeAgo

The ui-time-ago element creates a relative formatted display of the time ellapsed since the provided date. It automatically updates in adjusted intervals to ensure the time display is kept up-to-date.


    <ui-time-ago .date=${ new Date() }></ui-time-ago>
    

Inputs:

Example