1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

TRAKTOR Date format of history playlist entries in Traktor NML files

Discussion in 'TRAKTOR' started by Ingo Fischer, Oct 28, 2019.

  1. Ingo Fischer

    Ingo Fischer New Member

    Messages:
    2
    I'm trying to parse Traktor NML files, specifically playlist history entries. Sample playlist entry from my history NML file:

    Code:
      <PLAYLISTS>
       <NODE TYPE="FOLDER" NAME="$ROOT">
         <SUBNODES COUNT="1">
           <NODE TYPE="PLAYLIST" NAME="HISTORY">
             <PLAYLIST ENTRIES="1" TYPE="PROTOCOL" UUID="6e640ed7917f4e4a911215710b3d731f">
               <ENTRY>
                 <PRIMARYKEY TYPE="TRACK" KEY="osx/:Users/:ifischer/:Music/:pechundschwefel/:Stefano Noferini - Ketra (Original Mix).mp3"/>
                 <EXTENDEDDATA DECK="0" DURATION="45.149128" EXTENDEDTYPE="HistoryData" PLAYEDPUBLIC="1" STARTDATE="132319772" STARTTIME="56022"/>
               </ENTRY>
             </PLAYLIST>
           </NODE>
         </SUBNODES>
       </NODE>
      </PLAYLISTS>
    The entrys EXTENDEDDATA child has a STARTDATE value of 132319772, which somehow translates to the date 2019-10-28. Which date format does Traktor use for STARTDATE?

    I tried to find out a format by saving traktor collection files with other system timestamp set, but could not yet figure out. The numbers:
    1970-01-01 => 129106177
    2018-10-28 => 132254236
    2019-10-28 => 132319772
    2018-10-27 => 132319771
     
  2. Nathaniel Carter

    Nathaniel Carter New Member

    Messages:
    1
    Hi. I recently came across this problem as well. The formula for the date number is (YEAR * 256 * 256) + (MONTH * 256) + DAY.
     
    • Informative Informative x 1