From owner-freebsd-questions Sat Mar 2 21: 9:31 2002 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.vaxxine.com (alpha.vaxxine.com [209.5.212.5]) by hub.freebsd.org (Postfix) with ESMTP id 45CE837B405 for ; Sat, 2 Mar 2002 21:09:28 -0800 (PST) Received: from there (ppp57.digi-t3.st-cath.niagara.net [209.5.215.57]) by alpha.vaxxine.com (8.9.2/8.9.3) with SMTP id AAA06477; Sun, 3 Mar 2002 00:09:19 -0500 (EST) Message-Id: <200203030509.AAA06477@alpha.vaxxine.com> Content-Type: text/plain; charset="iso-8859-1" From: "Paul C. Boyle" To: art@pilikia.net, freebsd-questions@FreeBSD.ORG Subject: Re: I am looking for a clock that has a hex readout. Date: Sun, 3 Mar 2002 00:10:29 -0500 X-Mailer: KMail [version 1.3] References: <200203030409.XAA16606@alpha.vaxxine.com> <200203021837490570.002FD6CD@10.25.0.4> In-Reply-To: <200203021837490570.002FD6CD@10.25.0.4> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On March 2, 2002 11:37 pm, you wrote: > #include > #include > > main() > { > time_t ticks; > struct tm *now; > > time(&ticks); > now = localtime(&ticks); > printf("%02X:%02X:%02X\n", now->tm_hour, now->tm_min, now->tm_sec); > exit(0); > } > Hey thanks. Can you give me some pointers as to how to get it to continually run. Right now right now it just prints out the time on the command line and stops. Can I interface this with xdaliclock? > On 3/2/02 at 11:11 PM Paul C. Boyle wrote: > >If any one knows of one please let me know. > > > > > >I only know very little c and c++. > >I think this would be a great little project but I have no idea where to > >begin. Could someone help me start this? > >Could it be done as a script in bash? > >I have been wanting to learn perl or python but havn't found the right > >beginners book yet. For programming I do better in a classroom rather > >than teaching myself. I get better direction that way. > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > >with "unsubscribe freebsd-questions" in the body of the message > > - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message