[comp.sys.atari.st] "Setting the date"

poirot@seismo.CSS.GOV@inria.inria.fr (03/05/87)

	A few weeks ago, i wrote a little program (using ALCYON C) to set the
date correctly at system reboot (who said original ??).  I use Tsetdate() and
Ikbdw() routines to set the date correctly in the 2 system clocks (i need  the
keyboard clock to be set to display it in the upper right corner of the screen)


	No problem to make it work correctly, but (there's always  a but)
my program always ask me for the date (and time) even after a RESET. However
i think the date is still correct in the keyboard (just frozen at reset).

	So i decided to modify it, to read the keyboard clock and if  this one
seems to be ok, set it as system date. So, I used Ikbdw() routine to read it
( command $1C) but all i got is 0 !

  	Am i right to say the date is still correct after a reset ?
	As someone got the same problem ?


Disclaimer: Opinions expressed above do not necesseraly reflect those
	    of my Employer. I have no affiliations with any named company .

===============================================================================

Didier POIROT						D. Poirot
				
mail: ...!seismo!mcvax!inria!poirot			INRIA
							Domaine de Voluceau
							B.P 105

							78153 LE CHESNAY CEDEX

							FRANCE
===============================================================================