Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Returning negative milliseconds with Time::Format

by CColin (Scribe)
on Mar 14, 2009 at 20:23 UTC ( #750652=perlquestion: print w/replies, xml ) Need Help??
CColin has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I've installed Time::Format and dependent modules. Running the following example from the documentation:
print $time{'hh:mm:ss.uuuuuu'}
on my system returns negative millisecond values, as in
The documentation shows the above without a minus sign. Have searched for the problem with no success. Any clues appreciated.

Replies are listed 'Best First'.
Re: Returning negative milliseconds with Time::Format
by codeacrobat (Chaplain) on Mar 14, 2009 at 21:31 UTC
      Updated the line in my local module and seems to work fine. Thanks!
Re: Returning negative milliseconds with Time::Format
by CountZero (Bishop) on Mar 14, 2009 at 21:13 UTC
    I have the same problem, also with the microseconds. Looks like a bug.


    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://750652]
Approved by ELISHEVA
and John Coltrane plays...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2018-05-23 04:49 GMT
Find Nodes?
    Voting Booth?