Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Mar 2002 19:50:49 -1000
From:      "Arthur W. Neilson III" <art@pilikia.net>
To:        "Paul C. Boyle" <paulcb_mcse@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: I am looking for a clock that has a hex readout.
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/types.h>
>> #include <time.h>
>>
>> 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




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