Skip to content

Instantly share code, notes, and snippets.

@carimatics
Last active May 16, 2017 14:16
Show Gist options
  • Save carimatics/fb3079e0c77a919d3096346488f76543 to your computer and use it in GitHub Desktop.
Save carimatics/fb3079e0c77a919d3096346488f76543 to your computer and use it in GitHub Desktop.
use Time::Piece ();
use feature qw/say/;
my $tw = { created_at => 'Sat Aug 01 01:56:26 +0000 2010', };
my $tp = Time::Piece->strptime( $tw->{created_at}, "%a %b %d %T %z %Y" );
say $tp->datetime;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment