Skip to content

Conversation

@CJxD
Copy link
Contributor

@CJxD CJxD commented Dec 8, 2015

I was inspired to extend prettyDate to allow future dates after I was getting a heisenbug with a date that was a few milliseconds ahead of my browser's time, causing the function to return undefined until I observed it in a debugger.

Now, in addition to previous formats, you can get:

  • in a moment
  • x minute(s) from now
  • x hour(s) from now
  • Tomorrow
  • x day(s) from now
  • x week(s) from now
  • more than 5 weeks from now
CJxD added 5 commits December 8, 2015 14:15
I was inspired to extend prettyDate to allow future dates after I was getting a heisenbug with a date that was a few milliseconds ahead of my browser's time, causing the function to return undefined until I observed it in a debugger. Now, in addition to previous formats, you can get: * in a moment * x minute(s) from now * x hour(s) from now * Tomorrow * x day(s) from now * x week(s) from now * more than 5 weeks from now
Hours and minutes still need to be covered at some point
@CJxD
Copy link
Contributor Author

CJxD commented Dec 9, 2015

I'll leave this open while I fix errors

phstc added a commit that referenced this pull request Mar 14, 2016
Allow future dates in prettyDate
@phstc phstc merged commit 6d68bbd into phstc:master Mar 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants