unix timestamp format converter in iphone
<p>im using json in my new app. im getting time in UNIX timestamps format. i try to get this done by this code..</p>

<pre><code>NSDate *date = [NSDate dateWithTimeIntervalSince1970:1234567];
NSDateComponents *weekdayComponents = [[NSCalendar currentCalendar] components:NSWeekdayCalendarUnit fromDate:date];
int weekday = [weekdayComponents weekday];
</code></pre>

<p>this work correctly if i try to passed time hardcoaded but didn't work on dynamically. means i didnot get in which format(decimalnumber, double) should i passed a variable in place of 1234567? </p>

<p>please help me regarding this.</p>
