login

time2t.gsf

Top / GrADS / script / time2t.gsf

Japanese / English

Name

time2t() - Convert time to time step.

Synopsis

ret = time2t( time )

Options and Return values

time
Time. e.g. '01jan2000'.
ret
Time step corresponding to the time.

Examples

(1) Show time step at "05jan2008".

  • test.gs
    'reinit'
    rc = gsfallow( 'on' )
    'open t.ctl'
    say time2t( '05jan2008' )
    
  • console
    ga-> test
    17
    

Script source code