in reply to Re: Confusing Use of Time in thread Confusing Use of Time
Thanks for the reply.
The time reported is indeed the number of seconds since the epoch(i'm thinksing now about the
IEEE and the cookbook quote;)
Perhaps I was accordingly mistaken in thinking that
time flows forward: ie;the writen track title echoed to the
tracks file toggles the mtime at song changes,so the two time
indices are the ending of one song to the begging of the other.
Re^3: Confusing Use of Time
by iburrell (Chaplain) on Sep 01, 2004 at 17:56 UTC
|
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.
| [reply] |
|