StampWorks Experiment #33 - Question?
Hi all, yes I know, today is holiday, but I'll try.
In this experiment (code attached)
Button 0 -> +/- minutes
Button 1 -> +/- hours
Button 2 -> +/- day
Button 2 -> roll back
How to do to set date (day in the month, 1 - 31), month and year?
Thank you in advance for help.
In this experiment (code attached)
Button 0 -> +/- minutes
Button 1 -> +/- hours
Button 2 -> +/- day
Button 2 -> roll back
How to do to set date (day in the month, 1 - 31), month and year?
Thank you in advance for help.


Comments
P.S.: Behind the Scenes, ... This is especially true when an application needs to handle time, day and date. StampWorks Page 194.
Post Edited (MichelB) : 12/25/2009 5:28:36 PM GMT
Reset_Clock: GOSUB Get_Buttons ' scan buttons [color=red]idx = btns & %0011[/color] ' isolate hrs & mins IF (idx = %11) THEN ' if both pressed, reset secs = $00 mins = $00 hrs = $06 ' 6:00 AM day = $07 ' Saturday date = $01 ' 1st month = $01 ' January year = $05 ' 2005 control = 0 ' disable SQW output GOSUB Set_Clock ' block write clock regs ENDIFJim