Article View: comp.sys.amiga.tech
Article #13594Re: setting the Amiga system date and time
From: ZZFRICK
Date: Fri, 09 Feb 1990 19:17
Date: Fri, 09 Feb 1990 19:17
21 lines
1486 bytes
1486 bytes
Date: 9 February 1990, 19:47:03 MEZ
From: Harald Fricke 05 11/790-20 25 ZZFRICK at DHVRRZN1
To: COMP-SYS-AMIGA-TECH at UCBVAX.BERKELEY.EDU
Setting the system time is a bit complicated. Given Date and Time in a human-
readable format, you'll have to calculate the number of seconds elapsed since
Jan 01, 1978. Then open the timer.device, UNIT_MICROHZ and send a SETSYSTIME
command with the number of seconds in it.
This approach is from a clock project published in a back issue of the
German c't computer magazine. It works, I used the code in a program that reads
the contents of a DCF77 clock receiver over the serial line and stuffs
the result into the system clock of my A1000.
I'd be grateful to hear if there is an easier way to do this...
-------------------------------------------------------------------------
Harald Fricke <ZZFRICK@DHVRRZN1.BITNET>
Disclaimer: RRZN Hannover and me have no opinions in common. Any opinions
expressed are my own.
Some computer stores sell incredibly bad machines ...
Technical Details
Message-ID:
<9002091917.AA12582@ucbvax.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!ucbvax!DHVRRZN1.BITNET!ZZFRICKShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!ucbvax!DHVRRZN1.BITNET!ZZFRICK From: ZZFRICK@DHVRRZN1.BITNET Newsgroups: comp.sys.amiga.tech Subject: Re: setting the Amiga system date and time Message-ID: <9002091917.AA12582@ucbvax.Berkeley.EDU> Date: 9 Feb 90 19:17:11 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 21 X-Unparsable-Date: Fri, 09 Feb 90 19:58:59 MEZ