Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: Confusing Use of Time

by iburrell (Chaplain)
on Sep 01, 2004 at 17:56 UTC ( [id://387620]=note: print w/replies, xml ) Need Help??

in reply to Re^2: Confusing Use of Time
in thread Confusing Use of Time

You are mistaken. The mtime is the time when the file was last modified. For a music track, this is likely when the file was created or copied. xmms should not be modifying the files when it reads them.

You should try looking at the access time (index 8 in stat array). It will be changed by xmms reading from the file. You might be able to make the assumption between the atime on the previous file and atime on current file is the play time for the current file. But you will have to verify this. It will depend on when xmms calls the plugin.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://387620]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-05-21 07:34 GMT
Find Nodes?
    Voting Booth?

    No recent polls found