Skip to content

Instantly share code, notes, and snippets.

@deatheragetr
Created April 6, 2015 16:46
Show Gist options
  • Save deatheragetr/83fbf8f458a7e4b52de1 to your computer and use it in GitHub Desktop.
Save deatheragetr/83fbf8f458a7e4b52de1 to your computer and use it in GitHub Desktop.
use DateTime;
my $dt = DateTime->new(year => '2015', month => '01', day => '31');
print $dt->add(months => 1);
#=> 2015-03-03T00:00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment