title: How to parse and extract Year, Month, Day etc from time interval on iphone IOS
body: <p>I am slowly getting into iOS development and trying to create a count up timer from a specific date. I have figured out the code which gives me the interval in seconds but I could not figure out how to extract Year/Month/Day/Hour/Minute/Second values from it in order to display each value in its own label as a ticker. </p>
  
  <p>So far I have figured out that the following will give me the interval between the 2 dates in seconds, what I am trying to do is to parse this and display on my view this as a ticker by updating the UILabel every second using NSTimer and calling selector once every 1 seconds and get something like this on my view: </p>
  
  <p>6Years 10Months 13Days 18Hours 25Minutes 18Seconds (obviously each label will be updated accordingly as the time goes up)</p>
  
  <pre><code>NSDate *startDate = [df dateFromString:@"2005-01-01"];
  
  NSTimeInterval passed = [[NSDate date] timeIntervalSinceDate: startDate];
  </code></pre>
  
  <p>Thanks</p>