login

dayofyear.gsf

Top / GrADS / script / dayofyear.gsf

Japanese / English

Name

dayofyear() - Get day of year, assuming January 1st is 1.

Synopsis

ret = dayofyear( time )

Options and Return values

time
GrADS-style time, For example, "15feb2001".
ret
Day of year, assuming January 1st is 1.

Examples

(1) Show day of year of 15 March 2004.

  • test.gs
    rc = gsfallow( 'on' )
    say dayofyear( '15mar2004' )
    
  • console
    ga-> test
    75
    

Script source code