Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add guidelines for showing timestamps ⏱ #255

Closed
6 tasks
maximedegreve opened this issue Apr 4, 2022 · 2 comments
Closed
6 tasks

Add guidelines for showing timestamps ⏱ #255

maximedegreve opened this issue Apr 4, 2022 · 2 comments

Comments

@maximedegreve
Copy link
Contributor

maximedegreve commented Apr 4, 2022

It's time ⏱ for another issue. I could't find any information regarding usage of timestamps and thought this could make a great addition to our docs in the future.

🔦 Some examples I've found:

🎉 What I expect in the docs:

  • Are there components/libraries available similar to moment.js our team should rely on during implementation.
  • At what time length do we go from a days/months to the full date. Do we always show the year than or only if past the current year?
  • How much precision is allowed on a timestamp. Seconds, minutes, hours, days, months...
  • Accessibility
  • When written in a sentence vs standalone
  • Will we support different formats: day/month/year or month/day/year

Related

@maximedegreve maximedegreve changed the title Add guidelines for showing timestamps Add guidelines for showing timestamps ⏱ Apr 4, 2022
@maximedegreve
Copy link
Contributor Author

Related: #299

@maximedegreve
Copy link
Contributor Author

Closing as sufficient docs are now available:
https://primer.style/design/ui-patterns/dates-and-times

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant