home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
CPM
/
DATABASE
/
KPHANDYP.LBR
/
NEXTDATE.CZD
/
NEXTDATE.CMD
Wrap
OS/2 REXX Batch file
|
2000-06-30
|
1KB
|
55 lines
STOR date() to hold
STOR val($(hold,7,2)) to yr
IF planning='T' .or. reminder='T'
STOR 1 to da
STOR val($(hold,1,2))+1 to mo
IF mo>12
STOR yr+1 to yr
STOR 1 to mo
ENDI
ELSE
STOR val($(hold,4,2))+1 to da
STOR val($(hold,1,2)) to mo
ENDI
IF da<10
STOR '0'+str(da,1) to day
ELSE
STOR str(da,2) to day
ENDI
IF mo=2
IF yr/4=int(yr/4) .and. da>29
STOR '01' to day
STOR mo+1 to mo
ELSE
IF yr/4#int(yr/4) .and. da>28
STOR '01' to day
STOR mo+1 to mo
ENDI
ENDI
ENDI
IF mo=9 .or. mo=4 .or. mo=6 .or. mo=11
IF da>30
STOR '01' to day
STOR mo+1 to mo
ENDI
ENDI
IF mo=1 .or. mo=3 .or. mo=5 .or. mo=7 .or. mo=8 .or. mo=10 .or. mo=12
IF da>31
STOR '01' to day
STOR mo+1 to mo
IF mo>12
STOR 1 to mo
STOR yr+1 to yr
ENDI
ENDI
ENDI
IF mo<10
STOR '0'+str(mo,1) to month
ELSE
STOR str(mo,2) to month
ENDI
STOR str(yr,2) to year
STOR month+'/'+day+'/'+year to today
SET date to &today
RETU