git-date-extractor icon indicating copy to clipboard operation
git-date-extractor copied to clipboard

Feature: Support human-readable stamps in output

Open joshuatz opened this issue 5 years ago • 0 comments

For quickly scanning stamps, it is hard to tell at a glance what something like this actually means in terms of relative dates:

{
  "md/docs/contributing.md": {
    "created": 1605291448,
    "modified": 1606105609
  }
}

It would be nice to support an option that adds to (not replaces) the existing fields with human readable dates. For example,

{
  "md/docs/contributing.md": {
    "created": 1605291448,
    "modified": 1606105609,
    "created-readable": "Friday, November 13, 2020 10:17:28 AM GMT-08:00",
    "modified-readable": "Sunday, November 22, 2020 8:26:49 PM GMT-08:00"
  }
}

Thought would have to be given to how to deal with timezones.

joshuatz avatar Dec 09 '20 04:12 joshuatz