Re: DAY Number in an Year



See the date routines and sample driver at:
http://ftp.cac.psu.edu/pub/ger/fortran/hdk/datesub.f90
These were published in CACM back in 1972:-)

(or Fortran 77 at:
http://ftp.cac.psu.edu/pub/ger/fortran/hdk/datesub.for )

Skip Knoble

On 28 Sep 2005 18:29:10 -0700, prasad413in@xxxxxxxxx wrote:

-|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: Trapping run-time errors
    ... -|> How soon do you expect to support the Fortran 200x IEEE Arithmetic Inquiry Functions? ... -|> Skip Knoble ... Alternatively, if I could trap ... -|> -|Fortran routine had failed. ...
    (comp.lang.fortran)
  • Re: calling a function once works, calling it twice fails
    ... I have linked a C++-program with a fortran routine, ... end subroutine READ_DIMENSIONS ... Does your Fortran compiler have an option to check array subscripts? ...
    (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)