Oracle Solaris Studio 12.4 Man Pages

Exit Print View

Updated: January 2015
 
 

fdate(3F)

Name

fdate - 以 ASCII 字符串形式返回日期和时间

Synopsis

subroutine fdate (string)
character*24 string
character*24 function fdate()

Description

fdate 按照 ctime(3C) 中描述的格式将当前日期和时间作为 24 字符的字符串返回。

fdate 可以作为函数或子例程进行调用。如果作为函数进行调用,则调用例程必须定义其类型和长度。

示例:

 
character*24   fdate
write(*,*) fdate()
end

输出格式如下所示:

 
Mon Aug 1 09:24:21 1994

Files

libfui.a

See also

ctime(3C)、time(3F)、idate(3F)