home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
arexx
/
misc_arexx
/
age.rexx
next >
Wrap
OS/2 REXX Batch file
|
1996-09-03
|
425b
|
49 lines
/* CPR to Age converter... by Warp oh' GiGA Prod...©1996 */
say age(230577)
exit
AGE:
CPR = arg(1)
BD = left(CPR,2)
BM = substr(CPR,3,2)
BY = Right(CPR,2)
CD = substr(date(u),4,2)
CM = left(date(u),2)
CY = right(date(u),2)
y = cy-by
select
when cm < bm then do
y=y-1
end
when cm = bm then do
if cd < bd then do
y=y-1
end
end
otherwise nop
end
return Y