Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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
20:17:16.-405272
The documentation shows the above without a minus sign. Have searched for the problem with no success. Any clues appreciated.

Comment on Returning negative milliseconds with Time::Format
Select or Download Code
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.

    CountZero

    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

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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://750652]
Approved by ELISHEVA
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-09-19 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (128 votes), past polls