From owner-freebsd-hackers Wed Oct 21 10:33:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA14228 for freebsd-hackers-outgoing; Wed, 21 Oct 1998 10:33:28 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA14215 for ; Wed, 21 Oct 1998 10:33:26 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id KAA00804; Wed, 21 Oct 1998 10:37:37 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810211737.KAA00804@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Reinier Bezuidenhout cc: Reinier.Bezuidenhout%KryptoKom.DE@Cirdan.KryptoKom.DE (Reinier Bezuidenhout), freebsd-hackers@FreeBSD.ORG Subject: Re: Reading CMOS date values In-reply-to: Your message of "Wed, 21 Oct 1998 12:51:33 +0200." <199810211051.MAA13488@borg.kryptokom.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 21 Oct 1998 10:37:37 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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