Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cannot get format=relative to display seconds #269

Open
@bear24rw

Description

@bear24rw

I cannot getrelative 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 seenow until 1 minute has passed.format=elapsed works as i expect.

image
<html><body><p>Loaded this page<relative-timedatetime=""format="relative"id="dynamic1"></relative-time></p><p>You've been on this page for<relative-timedatetime=""format="duration"id="dynamic2"></relative-time></p><scripttype="module"src="https://unpkg.com/@github/relative-time-element@latest/dist/bundle.js"></script><script>document.getElementById('dynamic1').date=newDate()document.getElementById('dynamic2').date=newDate()</script></body></html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp