Skip to content

Instantly share code, notes, and snippets.

@shelling
Created February 26, 2012 08:38
Show Gist options
  • Select an option

  • Save shelling/1915240 to your computer and use it in GitHub Desktop.

Select an option

Save shelling/1915240 to your computer and use it in GitHub Desktop.
epoch <=> timestamp converter
#!/usr/bin/env perl
use 5.010;
use Badger::Timestamp;
my $ts = Badger::Timestamp->new($ARGV[0]);
say $ts->timestamp;
say $ts->epoch_time;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment