subroutine fdate (string) character*24 string
character*24 function fdate()
fdate 按照 ctime(3C) 中描述的格式将当前日期和时间作为 24 字符的字符串返回。
fdate 可以作为函数或子例程进行调用。如果作为函数进行调用,则调用例程必须定义其类型和长度。
示例:
character*24 fdate write(*,*) fdate() end
输出格式如下所示:
Mon Aug 1 09:24:21 1994
libfui.a
ctime(3C)、time(3F)、idate(3F)