#!/usr/bin/perl use DateTime; $dt = DateTime->now(); $dt->subtract(months => 1); $year = $dt->year(); $month = $dt->strftime("%m"); print $dt."\n"; print $month."\n"; print $year."\n";
In reply to Re: Datetime Problem - Wrong Time
by chessgui
in thread Datetime Problem - Wrong Time
by solarisfire
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |