home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oakland CPM Archive
/
oakcpm.iso
/
cpm
/
database
/
kphandyp.lbr
/
SAYTODAY.CZD
/
SAYTODAY.CMD
Wrap
OS/2 REXX Batch file
|
1987-07-06
|
2KB
|
78 lines
STOR date() to today
STOR $(today,1,2) to month
STOR $(today,4,2) to day
STOR $(today,7,2) to year
STOR val(month) to mo
STOR val(day) to da
IF val(day)<10
STOR $(day,2,1) to day
ENDI
STOR val(year)+1900 to yr
STOR (365*yr)+da+(31*(mo-1)) to fact1
IF mo<3
STOR int((yr-1)/4)-int(.75*(int((yr-1)/100)+1)) to fact2
STOR fact1+fact2 to factor
ELSE
STOR int(.4*mo+2.3)-int(yr/4)+int(.75*(int(yr/100)+1)) to fact2
STOR fact1-fact2 to factor
ENDI
STOR factor+(int(-factor/7)*7) to factor
DO CASE
CASE factor=0
STOR 'Saturday' to today
CASE factor=1
STOR 'Sunday' to today
CASE factor=2
STOR 'Monday' to today
CASE factor=3
STOR 'Tuesday' to today
CASE factor=4
STOR 'Wednesday' to today
CASE factor=5
STOR 'Thursday' to today
CASE factor=6
STOR 'Friday' to today
ENDC
STOR today+', ' to today
DO CASE
CASE mo=1
STOR today+'January' to today
STOR 'January' to title
CASE mo=2
STOR today+'February' to today
STOR 'February' to title
CASE mo=3
STOR today+'March' to today
STOR 'March' to title
CASE mo=4
STOR today+'April' to today
STOR 'April' to title
CASE mo=5
STOR today+'May' to today
STOR 'May' to title
CASE mo=6
STOR today+'June' to today
STOR 'June' to title
CASE mo=7
STOR today+'July' to today
STOR 'July' to title
CASE mo=8
STOR today+'August' to today
STOR 'August' to title
CASE mo=9
STOR today+'September' to today
STOR 'September' to title
CASE mo=10
STOR today+'October' to today
STOR 'October' to title
CASE mo=11
STOR today+'November' to today
STOR 'November' to title
CASE mo=12
STOR today+'December' to today
STOR 'December' to title
ENDC
STOR today+' '+day+', 19'+year to today
RETU