relative-time-element
relative-time-element copied to clipboard
Web component extensions to the standard <time> element.
When updating `nowElements`, figure out how far away in time the nearest one is to ensure timely updates: If an element is within - one minute from now, update a...
Looks like there could be a bug here, if you are using this library on the Github `User Feed Page`. I believe this should be `3 hours ago`, as opposed...
I noticed that for `` which is further than 1 month ago we show example: `on 14 April 2018` Would it be possible to add custom prefix, which if not...
The source code contains an implementation of `strftime` and a few functions that use it but there's no way to access it directly. It would be nice if you could...
For current date 2015-02-23T00:00:00.000Z (like) The following html : Give this result : 117y Or it's should give 115 or maybe 116 not 117 ! Note : for date 002-02-01T00:00:00.000Z...
This upgrades the output to use ES2022. This includes native private fields syntax. We see almost zero devices on github.com that do not support private fields. And we've been [considered...
I cannot get `relative` format to display second level precision. The docs suggest that the default precision is seconds and this table suggests that with format relative i should see...
Hello, and thanks for this custom element! I am starting to use `` in an app that supports multiple languages and users are in different countries. I started with the...
I'm supposing this is the code that writes dates on Github web front. 1 year ago, it writes "2 years ago" 
This PR adds cases for whole years and whole months to not have extra days, e.g. May (`2023-05-11T00:00:00.00`) to July (`2023-07-11T00:00:00.00`) being `2 months` instead of current `2 months, 1...