Last active
April 30, 2017 19:10
-
-
Save asugai/5b1593c43708c3a33017 to your computer and use it in GitHub Desktop.
Twitter `created_at` to Mysql a unix timestamp
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
UNIX_TIMESTAMP(STR_TO_DATE(`created_at`, '%a %b %d %H:%i:%s +0000 %Y')) | |
Changes "Mon Nov 10 21:14:41 +0000 2014" to "1415654081" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot @asugai you save my day