Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 1998 10:37:37 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Reinier Bezuidenhout <Reinier.Bezuidenhout@KryptoKom.DE>
Cc:        Reinier.Bezuidenhout%KryptoKom.DE@Cirdan.KryptoKom.DE (Reinier Bezuidenhout), freebsd-hackers@FreeBSD.ORG
Subject:   Re: Reading CMOS date values 
Message-ID:  <199810211737.KAA00804@dingo.cdrom.com>
In-Reply-To: Your message of "Wed, 21 Oct 1998 12:51:33 %2B0200." <199810211051.MAA13488@borg.kryptokom.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > Hi ...
> > 
> > I'd like to read the CMOS values for the day, hour and minutes.
> > 
> > I'd like to get the day of the week, hour and minutes without
> > having to call microtime and then convert the values.
> > 
> > Has anyone done this before ??
> 
> Just have to add that I want to do this in the kernel :)

You almost certainly *don't* want to do this in the kernel.

If you want to do time conversions, do them in userspace where you have 
enough information at hand to do them correctly.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810211737.KAA00804>