home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore Disc 40
/
Commodore_Disc_40_19xx_-_de.d64
/
clock
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
585b
|
21 lines
1 diml(12):fori=1to12:readl(i):nexti:print"[147]uhrzeit eingeben (ssmmss)":inputti$
2 print"datum eingeben (tag,monat,jahr)":inputta,mo,ja
3 ifmo<1ormo>12then2
4 ifja<1988orja>2100then2
5 x=1984
6 x=x+4:ifx>jathenl(2)=28:goto9
7 ifx=jathenl(2)=29:goto9
8 goto6
9 ifta=29andmo=2andl(2)=28then2
10 ifta<0orta>l(mo)then2
11 print"[147]"
12 print"uhrzeit : ";left$(ti$,2);":";mid$(ti$,3,2);":";right$(ti$,2)
13 print"datum :";ta;"[157].";mo;"[157].";ja
14 t1=val(ti$)
15 ifti$="235959"thenta=ta+1:print" "
16 ifta>l(mo)thenta=1:mo=mo+1:ifmo>12thenmo=1:ja=ja+1
17 t2=val(ti$):ift1<t2ort2=0then12
18 geta$:ifa$=" "thenend
19 goto17
20 data31,28,31,30,31,30,31,31,30,31,30,31