DAY Number in an Year



Hello,
I am a Newbie to Fortran. I need to write a simple routine in which
current year and day Number in an Year, like today is 272nd day in this
year are known. I need to write routine such that count starts from
which starts from 336th day in 2004 and it goes on.
I tried like


YEAR = 2004
C Condition should be like it should return the Current Year...

IF(DAY_NO .GT. 365) THEN CURRENT_YEAR = YEAR+1 ??????????
It should be a real time run..

Thanks

.



Relevant Pages

  • Re: DAY Number in an Year
    ... I am a Newbie to Fortran. ... I need to write a simple routine in which current year and day Number in an Year, like today is 272nd day in this year are known. ... CIMSS @ NOAA/NCEP/EMC ...
    (comp.lang.fortran)
  • Re: 2d Gaussian Quadrature
    ... > complex-valued function of two real variables. ... > Fritsch, Kahaner, and Lyness, Double Integration Using One Dimensional ... > of an adaptive routine over a single application of a gaussian ... > More recently I converted this routine to Fortran 90 and also created ...
    (comp.lang.fortran)
  • Re: Reported any bugs in C-LAPACK routine DSPEVX?
    ... >>and call the latest Fortran LAPACK routines directly. ... For the dstevx routine I do it like this. ... the declaration can be done also in a header.h file which is ... There exists other ways of including lapack routines into C. ...
    (sci.math.num-analysis)
  • Re: File reading problem
    ... Of course the software contains a routine to ... Visual Fortran would be the most natural ... Should Notepad read ascii code? ... One would assume there's somethingreadingthese output files now ...
    (comp.lang.fortran)
  • Re: fortran pointer structure
    ... From your discussion, it's quite clear that you are using, in your Fortran ... routine, the assumed-shape (hope I got that one correct - they all start ... I do know that the VAX FORTRAN compiler did this: ...
    (comp.lang.fortran)