zrhans

aleatorio.f95

Sep 28th, 2014
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. program aleatorio
  2.  
  3. real    :: t1=0., t2=0.
  4. integer :: zeros = 0, uns = 0
  5. real   :: aleat
  6.  
  7.  character(8)  :: date
  8.  character(10) :: time
  9.  character(5)  :: zone
  10.  integer,dimension(8) :: values
  11.  ! using keyword arguments
  12.     call date_and_time(date,time,zone,values)
  13.     call date_and_time(DATE=date,ZONE=zone)
  14.     call date_and_time(TIME=time)
  15.     call date_and_time(VALUES=values)
  16. print '(a,2x,a,2x,a)', date, time, zone
  17. !print '(8i5)', values
  18.  print*,'Aleatorio: ',nint(values(8)*.001)
  19.  
  20. stop
  21. end
Advertisement
Add Comment
Please, Sign In to add comment