What is the difference between timegm and timelocal?
This question might not be perl related but can you think of other ways that I can compute for the time elapsed given that I have two timestamps. The format of the time stamp is YYYYMMDDHHMMSS
Currently, what I do is to parse the time string and and use timelocal or timegm to get the seconds conversion.
The reason why I am asking is that the timelocal function seem to be computationally expensive. I processed millions of transactions and it took around 6 hours to complete. But when I removed the timelocal function the processing time was reduced to 2 hours.