* kernel API's regarding time conversions
@ 2011-04-04 11:47 Mohammed Shafi
2011-04-05 10:56 ` Mohammed Shafi
0 siblings, 1 reply; 2+ messages in thread
From: Mohammed Shafi @ 2011-04-04 11:47 UTC (permalink / raw)
To: kernelnewbies
Hi all,
Is there some kernel API's(like jiffies_to_msecs) already
available for any of the following:
1.millisecs_to_seconds
2.seconds_to_minutes
3.minutes_to_hours
4.hours_to_days
5.days_to_months
6.months_to_years
sorry if its a basic question.
thanks in advance,
shafi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110404/474b199c/attachment-0001.html
^ permalink raw reply [flat|nested] 2+ messages in thread* kernel API's regarding time conversions
2011-04-04 11:47 kernel API's regarding time conversions Mohammed Shafi
@ 2011-04-05 10:56 ` Mohammed Shafi
0 siblings, 0 replies; 2+ messages in thread
From: Mohammed Shafi @ 2011-04-05 10:56 UTC (permalink / raw)
To: kernelnewbies
On Mon, Apr 4, 2011 at 5:17 PM, Mohammed Shafi <shafi.kernel@gmail.com>wrote:
> Hi all,
> Is there some kernel API's(like jiffies_to_msecs) already
> available for any of the following:
> 1.millisecs_to_seconds
> 2.seconds_to_minutes
> 3.minutes_to_hours
> 4.hours_to_days
> 5.days_to_months
> 6.months_to_years
>
> sorry if its a basic question.
> thanks in advance,
> shafi
>
Hi all,
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.
Any other suggestions will be helpful.
thanks,
shafi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110405/3488ca96/attachment.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-05 10:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-04 11:47 kernel API's regarding time conversions Mohammed Shafi
2011-04-05 10:56 ` Mohammed Shafi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).