Article View: comp.sys.amiga.tech
Article #13751Re: Setting the Amiga system date and time
From: LEEK
Date: Sat, 17 Feb 1990 07:05
Date: Sat, 17 Feb 1990 07:05
18 lines
1054 bytes
1054 bytes
> I can read the Amiga system time with DateStamp().
> But how do I SET it?
You can use the Execute() to call up Amiga DOS command - Date in your C:
directory. Here is the bit and pieces of code from my own Real Time Clock...
static char *DOS_CMD = "Date HH:MM:SS DD-MMM-YY";
/* your code can substitute the actual time & date into HH:MM:SS */
Execute(DOS_CMD,NULL,NULL); /* Execute the Date command to set time */
Hope this help. If you or anyone else that need more info (for a 4 chips real
time clock - source code & schematic), please send me EMail.
K. C. Lee
P.S. I do not represent Queen's University nor any groups. (No wonder I am
struck building my hardware.)
Technical Details
Message-ID:
<90048.020559LEEK@QUCDN.BITNET>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!qucdn!leekReferences:
<77.25d0c638@intersil.uucp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!qucdn!leek Newsgroups: comp.sys.amiga.tech Subject: Re: Setting the Amiga system date and time Organization: Queen's University at Kingston Date: Saturday, 17 Feb 1990 02:05:59 EST From: <LEEK@QUCDN.QueensU.CA> Message-ID: <90048.020559LEEK@QUCDN.BITNET> References: <77.25d0c638@intersil.uucp>