|XP is just a number|
Providing Fractions of a second to DateTime?by cmv (Chaplain)
|on Jun 12, 2012 at 13:41 UTC||Need Help??|
cmv has asked for the
wisdom of the Perl Monks concerning the following question:
I'm parsing a logfile that gives me Timezone, Month, Day, Year, and the number of milliseconds since midnight. I would like to create a timestamp string down to the milliseconds of the form:
I fancy using DateTime to help me out with this, but I'm having trouble figuring out how to generate and provide the fraction of a second to it. I am forced to use perl5.8 - any help is very much appreciated!
Here is my current code that does not handle fractions of a second: