in reply to Timegm and timelocal

That depends entirely on where your time data comes from. If it is based on local time, you have no choice but timelocal. If it is based on UTC, timegm will do.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: Timegm and timelocal
by Chon-Ji (Novice) on Jun 07, 2007 at 06:45 UTC
    I see, since I just need the conversion to compute for the seconds elapsed then timegm will do right?

      Right, so long as you can ignore leap seconds.

      After Compline,
      Zaxo

        And DST changes.

        However, with the "10 minute" clarification below, Skeeve's solution is a good one.

        --MidLifeXis

        Based on my very shallow understanding of leap seconds, they won't happen within a single day, if that's the case then I'm still ok with timegm since the elapsed time of my transactions are at maximum 10 minutes apart