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

Show formatted dates as comments. #47

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

bkuker
Copy link

@bkuker bkuker commented Jan 9, 2015

I try to guess that a value is a Date:

  • Numbers that look like seconds or millis between Jan 1 2000 and Jan 1 2038
  • Strings that look like they came from JSON.stringify({'now': new Date()})
    and then include GMT and Locale formatted versions, as comments, in the formatted JSON.

I realize that the comment is not valid JSON, but it's not too far off, a user could likely still copy & paste the formatted output into most things.

image

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

Successfully merging this pull request may close these issues.

1 participant