From: Jun Sun <jsun@mvista.com>
To: Brad Parker <brad@parker.boston.ma.us>
Cc: linux-mips@linux-mips.org, jsun@mvista.com
Subject: Re: to_tm() in kernel/time.c?
Date: Tue, 9 Dec 2003 14:19:40 -0800 [thread overview]
Message-ID: <20031209141940.A7038@mvista.com> (raw)
In-Reply-To: <200312092058.hB9Kw6t31608@p2.parker.boston.ma.us>; from brad@parker.boston.ma.us on Tue, Dec 09, 2003 at 03:58:06PM -0500
On Tue, Dec 09, 2003 at 03:58:06PM -0500, Brad Parker wrote:
>
> Can anyone tell me if to_tm() in kernel/time.c returns months as 0-11?
> (in the current mips tree, that is)
>
It is 0-11. See the code
tm->tm_mon = i - 1; /* tm_mon starts from 0 to 11 */
> I'm curious if the to_tm() in the ppc tree is the same as the to_tm()
> in the mips tree. In the ppc tree it returns 1-12.
>
The routine was copied from PPC. I think tm_mon is set to 0-11 so as to match
struct rtc_time usage when it is exported to userland.
I will check with PPC folks to see why they changed it.
Jun
prev parent reply other threads:[~2003-12-09 22:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-09 20:58 to_tm() in kernel/time.c? Brad Parker
2003-12-09 22:19 ` Jun Sun [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031209141940.A7038@mvista.com \
--to=jsun@mvista.com \
--cc=brad@parker.boston.ma.us \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox