From owner-freebsd-questions Sat Mar 2 21:50:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.pilikia.net (ns1.pilikia.net [63.173.194.12]) by hub.freebsd.org (Postfix) with ESMTP id 4568337B400 for ; Sat, 2 Mar 2002 21:50:55 -0800 (PST) Received: from uluru.local.net (uluru.local.net [10.25.0.4]) by ns1.pilikia.net (8.11.6/8.11.6) with ESMTP id g235onx14165; Sat, 2 Mar 2002 19:50:49 -1000 (HST) (envelope-from art@pilikia.net) Received: from gecko (gecko.local.net [10.25.0.9]) by uluru.local.net (8.11.6/8.11.6) with ESMTP id g235omn12899; Sat, 2 Mar 2002 19:50:48 -1000 (HST) (envelope-from art@pilikia.net) Message-ID: <200203021950490000.0072AC4F@10.25.0.4> In-Reply-To: <200203030509.AAA06477@alpha.vaxxine.com> References: <200203030409.XAA16606@alpha.vaxxine.com> <200203021837490570.002FD6CD@10.25.0.4> <200203030509.AAA06477@alpha.vaxxine.com> X-Mailer: Calypso Version 3.20.02.00 (3) Date: Sat, 02 Mar 2002 19:50:49 -1000 Reply-To: art@pilikia.net From: "Arthur W. Neilson III" To: "Paul C. Boyle" Cc: freebsd-questions@freebsd.org Subject: Re: I am looking for a clock that has a hex readout. Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by AMaViS/NAI-uvscan-4.14 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 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 :^). 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 =3D 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 >> >> - -- __ / ) _/_ It is a capital mistake to theorise before one has data. /--/ __ / Insensibly one begins to twist facts to suit theories, / (_/ (_<__ Instead of theories to suit facts. -- Sherlock Holmes, "A Scandal in Bohemia" Arthur W. Neilson III, WH7N - FISTS #7448 Bank of Hawaii Network Services http://www.pilikia.net art@pilikia.net, aneilson@boh.com, wh7n@arrl.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message