relative-time-element icon indicating copy to clipboard operation
relative-time-element copied to clipboard

Web component extensions to the standard <time> element.

Results 41 relative-time-element issues
Sort by recently updated
recently updated
newest added

a very long time ago I started a [very similar project](https://github.com/SimonWaldherr/disTime.js), which is now available in 19 different languages. Is there interest that I also integrate this functionality in github/time-elements?

Hi! I was testing this component today and noticed that the `title` attribute properly translates to my locale, but not the displayed value, which causes confusion. Looking at the examples...

Properly add the various elements to the JSX intrinsic space similar to: ```type CustomElement = Partial; declare global { namespace JSX { interface IntrinsicElements { ["time-ago"]: CustomElement; } } }```

I've overcome some earlier difficulties by changing my example usage be like the example HTML. I now have: ```html Maintenance Window The system may be down for 2 hours starting...

When using relative times, times older than a month are show absolutely, localized using the document's language (good!); however, the `title` is localized using the browser language (bad!). This should...

Allow user to supply a strftime() format through the format attribute, to be used when outside the relative time scope.

I found 2 problems: appending content in chrome and no default formatting **No default formatting:** Source: ```html Aug 24, 2018 23:57:42 ``` Result: ```html Aug 24, 2018 23:57:42 ``` would...

The element is pretty limited to English and the github date style right now. There should be a way to supply a strftime format for anything that is too old...

If the language is not supported (like Esperanto), relative dates show like "-10 d". More reasonable would be to fall back to English.

See this twitter thread: https://twitter.com/FlohOfWoe/status/1325427548650532864 Currently it's easy to miss the mouse-hover tooltip with the absolute time, especially in strings like this: ![image](https://user-images.githubusercontent.com/1699414/98466705-92d13e00-21d1-11eb-891c-71a8e99ec2e0.png) The relative time "29 days ago" is...