Ultralink Atomic Time Clock
Archiver
Posts: 46,084
Easy question for some of you out there! I've been playing around with the
Ultralink Atomic Time Clock board for a couple of weeks now and seem to be
having a problem! I downloaded the sample code from ulio.com for the BS2,
which I'm using. The clock locks on to a signal and displays time OK to my
Scott Edwards 4x20 display. Now for the problem part. I would like to
change the hours displayed to my local time. How do I adjust the time
displayed from "UTC" to Central Standard Time. I noticed that Rod Mack from
Ulio the manufacturer of the time clock board, wrote some sort of loop to
write each character displayed on the LCD in sequence. Also the fact that he
is using "packed BCD" as a format. How do I modify or subtract five hours
from the UTC signal sent from Fort Collins, CO that is received by my time
clock board. Thanks in advance, Rob, fiveslo@a...
Ultralink Atomic Time Clock board for a couple of weeks now and seem to be
having a problem! I downloaded the sample code from ulio.com for the BS2,
which I'm using. The clock locks on to a signal and displays time OK to my
Scott Edwards 4x20 display. Now for the problem part. I would like to
change the hours displayed to my local time. How do I adjust the time
displayed from "UTC" to Central Standard Time. I noticed that Rod Mack from
Ulio the manufacturer of the time clock board, wrote some sort of loop to
write each character displayed on the LCD in sequence. Also the fact that he
is using "packed BCD" as a format. How do I modify or subtract five hours
from the UTC signal sent from Fort Collins, CO that is received by my time
clock board. Thanks in advance, Rob, fiveslo@a...
Comments
my own time zone (as opposed to UTC). I also wanted to automatically
make the switch from daylight to standard time, and visa-versa.
I developed some additional code to convert the UTC time to local
time, modify the day number (if the time change caused the time to
revert to the previous day), and to make the change from daylight
savings to standard time. Once I figured out extract the BCD info
and make the conversion it was fairly straightforward.
If you e-mail me I will gladly forward the code to you !
Chuck Bushman
--- In basicstamps@egroups.com, fiveslo@a... wrote:
> Easy question for some of you out there! I've been playing around
with the
> Ultralink Atomic Time Clock board for a couple of weeks now and
seem to be
> having a problem! I downloaded the sample code from ulio.com for
the BS2,
> which I'm using. The clock locks on to a signal and displays time
OK to my
> Scott Edwards 4x20 display. Now for the problem part. I would
like to
> change the hours displayed to my local time. How do I adjust the
time
> displayed from "UTC" to Central Standard Time. I noticed that Rod
Mack from
> Ulio the manufacturer of the time clock board, wrote some sort of
loop to
> write each character displayed on the LCD in sequence. Also the
fact that he
> is using "packed BCD" as a format. How do I modify or subtract
five hours
> from the UTC signal sent from Fort Collins, CO that is received by
my time
> clock board. Thanks in advance, Rob, fiveslo@a...
my own time zone (as opposed to UTC). I also wanted to automatically
make the switch from daylight to standard time, and visa-versa.
I developed some additional code to convert the UTC time to local
time, modify the day number (if the time change caused the time to
revert to the previous day), and to make the change from daylight
savings to standard time. Once I figured out extract the BCD info
and make the conversion it was fairly straightforward.
If you e-mail me I will gladly forward the code to you !
Chuck Bushman
--- In basicstamps@egroups.com, fiveslo@a... wrote:
> Easy question for some of you out there! I've been playing around
with the
> Ultralink Atomic Time Clock board for a couple of weeks now and
seem to be
> having a problem! I downloaded the sample code from ulio.com for
the BS2,
> which I'm using. The clock locks on to a signal and displays time
OK to my
> Scott Edwards 4x20 display. Now for the problem part. I would
like to
> change the hours displayed to my local time. How do I adjust the
time
> displayed from "UTC" to Central Standard Time. I noticed that Rod
Mack from
> Ulio the manufacturer of the time clock board, wrote some sort of
loop to
> write each character displayed on the LCD in sequence. Also the
fact that he
> is using "packed BCD" as a format. How do I modify or subtract
five hours
> from the UTC signal sent from Fort Collins, CO that is received by
my time
> clock board. Thanks in advance, Rob, fiveslo@a...
my own time zone (as opposed to UTC). I also wanted to automatically
make the switch from daylight to standard time, and visa-versa.
I developed some additional code to convert the UTC time to local
time, modify the day number (if the time change caused the time to
revert to the previous day), and to make the change from daylight
savings to standard time. Once I figured out extract the BCD info
and make the conversion it was fairly straightforward.
If you e-mail me I will gladly forward the code to you !
Chuck Bushman
--- In basicstamps@egroups.com, fiveslo@a... wrote:
> Easy question for some of you out there! I've been playing around
with the
> Ultralink Atomic Time Clock board for a couple of weeks now and
seem to be
> having a problem! I downloaded the sample code from ulio.com for
the BS2,
> which I'm using. The clock locks on to a signal and displays time
OK to my
> Scott Edwards 4x20 display. Now for the problem part. I would
like to
> change the hours displayed to my local time. How do I adjust the
time
> displayed from "UTC" to Central Standard Time. I noticed that Rod
Mack from
> Ulio the manufacturer of the time clock board, wrote some sort of
loop to
> write each character displayed on the LCD in sequence. Also the
fact that he
> is using "packed BCD" as a format. How do I modify or subtract
five hours
> from the UTC signal sent from Fort Collins, CO that is received by
my time
> clock board. Thanks in advance, Rob, fiveslo@a...
my own time zone (as opposed to UTC). I also wanted to automatically
make the switch from daylight to standard time, and visa-versa.
I developed some additional code to convert the UTC time to local
time, modify the day number (if the time change caused the time to
revert to the previous day), and to make the change from daylight
savings to standard time. Once I figured out extract the BCD info
and make the conversion it was fairly straightforward.
If you e-mail me I will gladly forward the code to you !
Chuck Bushman
--- In basicstamps@egroups.com, fiveslo@a... wrote:
> Easy question for some of you out there! I've been playing around
with the
> Ultralink Atomic Time Clock board for a couple of weeks now and
seem to be
> having a problem! I downloaded the sample code from ulio.com for
the BS2,
> which I'm using. The clock locks on to a signal and displays time
OK to my
> Scott Edwards 4x20 display. Now for the problem part. I would
like to
> change the hours displayed to my local time. How do I adjust the
time
> displayed from "UTC" to Central Standard Time. I noticed that Rod
Mack from
> Ulio the manufacturer of the time clock board, wrote some sort of
loop to
> write each character displayed on the LCD in sequence. Also the
fact that he
> is using "packed BCD" as a format. How do I modify or subtract
five hours
> from the UTC signal sent from Fort Collins, CO that is received by
my time
> clock board. Thanks in advance, Rob, fiveslo@a...
>change the hours displayed to my local time. How do I adjust the time
>displayed from "UTC" to Central Standard Time. I noticed that Rod Mack
from
>Ulio the manufacturer of the time clock board, wrote some sort of loop to
>write each character displayed on the LCD in sequence. Also the fact that
he
>is using "packed BCD" as a format. How do I modify or subtract five
hours
>from the UTC signal sent from Fort Collins, CO that is received by my time
>clock board. Thanks in advance, Rob, fiveslo@a...
There are some date/time routines that may help at
http://emesystems.com/BS2math4.htm#JulianDate
-- Tracy