Skip to content

Instantly share code, notes, and snippets.

@asugai
Last active April 30, 2017 19:10
Show Gist options
  • Select an option

  • Save asugai/5b1593c43708c3a33017 to your computer and use it in GitHub Desktop.

Select an option

Save asugai/5b1593c43708c3a33017 to your computer and use it in GitHub Desktop.
Twitter `created_at` to Mysql a unix timestamp
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"
@asugai

asugai commented Apr 30, 2017

Copy link
Copy Markdown
Author

Glad this helped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment