Created
June 21, 2013 19:28
-
-
Save takuoka/5833681 to your computer and use it in GitHub Desktop.
[CoffeeScript] Facebookのcreated_timeからDateオブジェクトを返す関数 ref: http://qiita.com/entotsu@github/items/bbf1ee3cbef998b25f2f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
newDate_from_facebook_created_time = (created_time)-> | |
return new Date((created_time or "").replace(/-/g, "/").replace(/[TZ]/g, " ")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment