<br><br><div class="gmail_quote">On Mon, Apr 4, 2011 at 5:17 PM, Mohammed Shafi <span dir="ltr">&lt;<a href="mailto:shafi.kernel@gmail.com">shafi.kernel@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<br>             Is there some kernel API&#39;s(like jiffies_to_msecs) already available for any of the following:<br>1.millisecs_to_seconds<br>2.seconds_to_minutes<br>3.minutes_to_hours<br>4.hours_to_days<br>5.days_to_months<br>

6.months_to_years<br><br>sorry if its a basic question.<br>thanks in advance,<br><font color="#888888">shafi<br>
</font></blockquote></div>Hi all,<br>       looks like time_to_tm function in /kernel/time/timeconv.c will be helpful. my question itself is not correct, my actual query, is to get all the other time parameters using milli_secs as the time input.<br>
Any other suggestions will be helpful.<br>thanks,<br>shafi<br><br>