title: How to get time elapsed and time remaining from api radionomy current song
body: <p>I have a url: 
  <a href="http://api.radionomy.com/currentsong.cfm?radiouid=dba94474-bd22-468d-bbe3-cc2c32c3220c&amp;type=xml&amp;cover=yes&amp;callmeback=yes&amp;defaultcover=yes&amp;streamurl=yes&amp;zoneid=0&amp;countrycode=&amp;size=90&amp;dynamicconf=yes&amp;cachbuster=144626" rel="nofollow">http://api.radionomy.com/currentsong.cfm?radiouid=dba94474-bd22-468d-bbe3-cc2c32c3220c&amp;type=xml&amp;cover=yes&amp;callmeback=yes&amp;defaultcover=yes&amp;streamurl=yes&amp;zoneid=0&amp;countrycode=&amp;size=90&amp;dynamicconf=yes&amp;cachbuster=144626</a></p>
  
  <p>I have start time: <code>2015-02-18 20:46:44.213</code>
  and duration of a song: <code>120000</code></p>
  
  <p>How do I get time elapsed and time remaining?</p>
  
  <p>EDIT:</p>
  
  <p>code:</p>
  
  <pre><code> $data = simplexml_load_file('http://api.radionomy.com/currentsong.cfm?radiouid=dba94474-bd22-468d-bbe3-cc2c32c3220c&amp;type=xml&amp;cover=yes&amp;callmeback=yes&amp;defaultcover=yes&amp;streamurl=yes&amp;zoneid=0&amp;countrycode=&amp;size=90&amp;dynamicconf=yes&amp;cachbuster=144626');
   $currentSong = $data-&gt;track;
   print_r ( $currentSong );
   $song = $currentSong-&gt;title . ' - ' . $currentSong-&gt;artists;
   $startTime = $currentSong-&gt;starttime;
   $songDuration = $currentSong-&gt;playduration;
  
   $dateTime = new DateTime( $startTime );
   $timeStampStart = $dateTime-&gt;getTimestamp();
   $timeNow = time();
  
   $timeElapsed = ($timeStampStart - $timeNow);
  
   $timeLeft = ($songDuration - $timeElapsed);
  
   $ar = array( "song" =&gt; $song, "elapsedTime" =&gt; $timeElapsed, "timeLeft" =&gt; $timeLeft);
   print_r ( $ar );
  </code></pre>
  
  <p>result : <a href="http://haddoz.li/api/radio/currentsong" rel="nofollow">http://haddoz.li/api/radio/currentsong</a></p>