in reply to Re^2: smart human readable time epoch
in thread smart human readable time epoch

What you're missing is the proper usage of the function. It is documented to take a DateTime::Duration object.