[gradsusr] Date Issue for the DAY 2021

Javier G Corripio jgcorripio at me.com
Wed Dec 30 09:18:18 EST 2020


If you are using Linux and GRADS > 2.1.1.b0.

You can ask the system: 


'q time'
thisdate = subwrd(result,3)

DOW=sys('date --date="'thisdate'" "+%a"')
say 'DOW short 'DOW

DOW=sys('date --date="'thisdate'" "+%A"')
say 'DOW long 'DOW

DOW=sys('date --date="'thisdate'" "+%u"')
say 'DOW number 'DOW


Regards,

Javier
meteoexploration.com



More information about the gradsusr mailing list