do anyone know that perl has any time difference calculation function.I have to find difference between time() before and after a request.I knewthis way
$start=time();
sleep 60;
$end=time();
$diff=$end-$start;
converting this in to min i can do but i wanted to know the perl function which return difference between timestamp.Apointer to the date/time tutorial will also be ggrl8 apprciaed.
There is no such inbuilt perl function. You have to do it programmatically like you did or use a module. There are many date/time modules on CPAN but your requirement seems so simple that I think you should just do it the way you are doing it.
Bookmarks