title: Create NSDate from Unix timestamp
body: <p>How do I create an NSDate from a Unix timestamp?</p>
  
  <pre><code>channel.startDate = [NSDate dateWithTimeIntervalSince1970:
  (NSTimeInterval)[channelJson objectForKey:@"broadcastStartedTime"]];
  </code></pre>
  
  <p>I get this error:</p>
  
  <blockquote>
    <p>104: error: pointer value used where a
    floating point value was expected</p>
  </blockquote>
  
  <p><code>channels.startDate</code> is an <code>NSDate*</code>. The value for the key "broadcastStartedTime" is a Javascript <code>Number</code> converted into an <code>NSNumber</code> or <code>NSDecimalNumber</code> by the <a href="http://code.google.com/p/json-framework/">SBJson</a> parser library.</p>