github / github/relative-time-element

Cannot get format=relative to display seconds

Open
#269 4 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4k
Forks
192
Avg merge
1d 10h
Merged PRs (30d)
5

Description

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 seconds. But I only see `now` until 1 minute has passed. `format=elapsed` works as i expect.

image

```html


Loaded this page


You've been on this page for




document.getElementById('dynamic1').date = new Date()
document.getElementById('dynamic2').date = new Date()

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.