Logo

Programming-Idioms

History of Idiom 184 > diff from v18 to v19

Edit summary for version 19 by daxim:
New Perl implementation by user [daxim]

Version 18

2019-09-26, 16:53:28

Version 19

2019-09-27, 21:02:30

Idiom #184 Tomorrow

Assign to variable t a string representing the day, month and year of the day after the current date.

Idiom #184 Tomorrow

Assign to variable t a string representing the day, month and year of the day after the current date.

Imports
use DateTime qw();
Code
my $dt = DateTime->today;
$dt->add(days => 1);
my $t = $dt->strftime('%F');
Doc URL
http://p3rl.org/DateTime