2005-12-23 12:07:54 -05:00
|
|
|
|
|
|
|
subroutine get_fname(hiscall,ntime,trperiod,lauto,fname)
|
|
|
|
|
|
|
|
#ifdef Win32
|
|
|
|
use dfport
|
2006-12-22 09:43:54 -05:00
|
|
|
#else
|
|
|
|
external gmtime_r
|
2005-12-23 12:07:54 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
character hiscall*12,fname*24,tag*7
|
|
|
|
integer ntime
|
|
|
|
integer trperiod
|
|
|
|
integer it(9)
|
|
|
|
|
|
|
|
n1=ntime
|
|
|
|
n2=(n1+2)/trperiod
|
|
|
|
n3=n2*trperiod
|
2006-12-22 09:43:54 -05:00
|
|
|
#ifdef Win32
|
|
|
|
call gmtime(n3,it)
|
|
|
|
#else
|
2006-12-10 19:57:18 -05:00
|
|
|
call gmtime_r(n3,it)
|
2006-12-22 09:43:54 -05:00
|
|
|
#endif
|
2005-12-23 12:07:54 -05:00
|
|
|
it(5)=it(5)+1
|
|
|
|
it(6)=mod(it(6),100)
|
|
|
|
write(fname,1000) (it(j),j=6,1,-1)
|
|
|
|
1000 format('_',3i2.2,'_',3i2.2,'.WAV')
|
|
|
|
tag=hiscall
|
|
|
|
i=index(hiscall,'/')
|
|
|
|
if(i.ge.5) tag=hiscall(1:i-1)
|
|
|
|
if(i.ge.2.and.i.le.4) tag=hiscall(i+1:)
|
2006-08-02 14:51:08 -04:00
|
|
|
if(hiscall(1:1).eq.' ' .or. lauto.eq.0) tag='Mon'
|
2005-12-23 12:07:54 -05:00
|
|
|
i=index(tag,' ')
|
|
|
|
fname=tag(1:i-1)//fname
|
|
|
|
|
|
|
|
return
|
|
|
|
end subroutine get_fname
|