title: How to find Nakshatra and thithi using date
body: <p>I need to calculate <a href="http://en.wikipedia.org/wiki/Nakshatra" rel="noreferrer">Nakshatra</a> and <a href="http://en.wikipedia.org/wiki/Tithi" rel="noreferrer">Thithi</a> using date-time and current location latitude and longitude.</p>
  
  <p>Date from</p>
  
  <pre><code>    NSDate *today = [NSDate date];
      NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
   // display in 12HR/24HR (i.e. 11:25PM or 23:25) format according to User Settings
      [dateFormatter setTimeStyle:NSDateFormatterShortStyle];
      NSString *currentTime = [dateFormatter stringFromDate:today];
      [dateFormatter release];
  </code></pre>
  
  <p>Longitude and latitude values from <code>NSLocationManager</code>. Can someone please shed light on the mathematical calculation?</p>