Then to get the actual duration values from $duration take a look at the DateTime::Duration module.use DateTime; my $current = DateTime->now; my $created = DateTime->from_epoch( epoch => (stat $_ )[9] ); my $duration = $current - $created;
In reply to Re: How to find Date and Time difference?
by leedo
in thread How to find Date and Time difference?
by gube
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |