RMI / RMI/resources

Format dates using the international ISO 8601 standard

Open
#36 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

best-practice date-time
Dominant language
No language data
Stars
17
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Format dates using the international ISO 8601 standard, unless you have a good reason to do otherwise.

# Good
lubridate::as_date("2019/07/19")
#> [1] "2019-07-19"

# Bad
lubridate::as_date("07/19/2019")
#> Warning: All formats failed to parse. No formats found.
#> [1] NA

# Bad
lubridate::as_date("19/07/2019")
#> Warning: All formats failed to parse. No formats found.
#> [1] NA

Created on 2019-08-01 by the reprex package (v0.3.0)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. First locate the date formatting or date-producing resources in the repository, then compare their output with ISO 8601 and identify any exceptions that need justification. Done means applicable dates use the specified standard and existing checks or examples reflect that format.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
internationalization
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.