say $dt->ymd;
Shouldn't that be: say $dt->hms;
In reply to Re^2: How can I add 1 hour to the current time by BrowserUk in thread How can I add 1 hour to the current time by sureshrps