
Converting from ctime format to time_t format
I've been trying to parse some syslog files I have lying around
by comparing the date value to some time_t's I have lying around in
a few databases. Is there a timec function (sort of like the
timelocal function) that does this? I tried to convert the printed
ascii date into the array that timelocal uses but all I get is an
infinite loop as the timelocal tries to get closer to the correct
answer.
Code or suggestions on how to get timelocal to behave better would
be most helpful. I'm using Perl 4.036 on an HP 9000/715.
--