in reply to Re: Re: Determining time since
in thread Determining time since

I tried l2kashe's code and the test came out:
0.00146257716049383 days 4.21062361931911e-18 hours ago
I have no idea what went wrong, but I think you should go with a module on this one. Check out Time::Duration from cpan.org. It looks like it'll accomplish this for you.


"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

sulfericacid