Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Mar 2002 01:18:10 -0500
From:      "Paul C. Boyle" <paulcb_mcse@yahoo.com>
To:        art@pilikia.net, freebsd-questions@FreeBSD.ORG
Subject:   Re: I am looking for a clock that has a hex readout.
Message-ID:  <200203030617.BAA10019@alpha.vaxxine.com>
In-Reply-To: <200203021950490000.0072AC4F@10.25.0.4>
References:  <200203030409.XAA16606@alpha.vaxxine.com> <200203030509.AAA06477@alpha.vaxxine.com> <200203021950490000.0072AC4F@10.25.0.4>

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




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