INTERACT FORUM
More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: JRFan on March 22, 2013, 12:12:15 pm
-
Out of curiosity how do you convert Date time values in the MC Library into readable values?
<Field Name="Date Imported">1344888533</Field> to 2013-02-28 1:22 PM.
I am guessing there is some base date to which you add the number of seconds to reach the correct date & time.
-
File dates are seconds since 1970.
If the date has a decimal, it's days since 1900.
The decimal format is our newer format and what is used everywhere inside the program.
-
Here are some calculation examples:
http://yabb.jriver.com/interact/index.php?topic=71968.msg486816#msg486816
http://yabb.jriver.com/interact/index.php?topic=71968.msg486958#msg486958
-
Thank you for the information. I have no real purpose for this other than I wanted to learn how to parse XML, and MC Library.xml seemed like an interesting choice. I can display the XML in a tree view Audio, Video, Image, Data and Unknown. The audio branch expands to show Artists and then to Albums and then to tracks. You get the idea.
I am in no way saying there is anything in the way bugs, just some observations in the difference between the Library view in JR and the exported XML. I have learned some interesting things like "Album" and "Album Artist", use "Album Artist" unless blank then use "Artist".
I have found I have an album title in mixed case with some of the tracks attached and then the same album in upper case with the rest of the tracks. The case of the "Artists" seem to be ignored in the JR library but are not the same in the XML so you end up with 2 artists different only in case.
Thanks again.