From owner-freebsd-questions Sat Mar 2 22:17: 9 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 0AD7837B417 for ; Sat, 2 Mar 2002 22:17:05 -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 BAA10019; Sun, 3 Mar 2002 01:17:00 -0500 (EST) Message-Id: <200203030617.BAA10019@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 01:18:10 -0500 X-Mailer: KMail [version 1.3] References: <200203030409.XAA16606@alpha.vaxxine.com> <200203030509.AAA06477@alpha.vaxxine.com> <200203021950490000.0072AC4F@10.25.0.4> In-Reply-To: <200203021950490000.0072AC4F@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 3, 2002 12:50 am, you wrote: > all you asked for was a clock that has a hex readout. further enhancements > are an excersize left unto you. I'm sure that if you spend a bit of time > on it you can figure out how to make it loop. color, sound and animated > images would be cool too :^). > Thanks, thats what I am looking for. Ideas on how to do it. > On 3/3/02 at 12:10 AM Paul C. Boyle wrote: > >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