Get system time
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.fortran Profile…
 Up
Get system time         


Author: FarrukhMohsen
Date: Jul 3, 2008 07:48

I am trying to get the system date and time using the following
code

Integer time
Integer stime
Character rdate(64)
stime = time()
call ctime(stime, rdate)
write (*,100) rdate
100 format (a32)
stop
end

However, I am getting an error message saying:
Reference to intrinsic CTIME is invalid. One or more of the arguments
have incorrect type. Could you please help?
2 Comments
Re: Get system time         


Author: nospam
Date: Jul 3, 2008 08:51

FarrukhMohsen gmail.com> wrote:
> I am trying to get the system date and time using the following
> code
>
> Integer time
> Integer stime
> Character rdate(64)
> stime = time()
> call ctime(stime, rdate)
> write (*,100) rdate
> 100 format (a32)
> stop
> end
>
>
> However, I am getting an error message saying:
> Reference to intrinsic CTIME is invalid. One or more of the arguments
> have incorrect type. Could you please help?
Show full article (1.73Kb)
no comments
Re: Get system time         


Author: Kurt Kallblad
Date: Jul 3, 2008 11:35

"FarrukhMohsen" gmail.com> wrote in message
news:11c589cd-f21e-45b1-8ffc-0f63785b01b1@m73g2000hsh.googlegroups.com...
>I am trying to get the system date and time using the following
> code
>
> Integer time
> Integer stime
> Character rdate(64)
> stime = time()
> call ctime(stime, rdate)
> write (*,100) rdate
> 100 format (a32)
> stop
> end
>
>
> However, I am getting an error message saying:
> Reference to intrinsic CTIME is invalid. One or more of the
> arguments
> have incorrect type. Could you please help? ...
Show full article (1.28Kb)
no comments