http://www.perlmonks.org?node_id=591232


in reply to Re: Seeking an example of Time::Period usage
in thread Seeking an example of Time::Period usage

I would like to ask where in the script dt->epoch would go?

You would replace $dt->datetime with $dt->epoch (a few lines up from the end of the original code).

Cheers,
Rob