Skip to content

Instantly share code, notes, and snippets.

Created November 10, 2009 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/231309 to your computer and use it in GitHub Desktop.
Save anonymous/231309 to your computer and use it in GitHub Desktop.
my $pastSeconds = time - (60 * 60 * 24 * 7 * $weeksAgo);
my $intObj = Math::BigInt->new($pastSeconds);
$intObj = Math::BigInt->new($intObj->bmul('10000000'));
my $pastLargeInt = Math::BigInt->new($intObj->badd('116444736000000000'));
$pastLargeInt =~ s/^[+-]//;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment