[gradsusr] Date format

Dave Allured dave.allured at noaa.gov
Mon Oct 10 17:02:58 EDT 2011


It can be changed easily.  Here is some grads script that I use to 
make plot titles:

    'query time'
    datestr = subwrd (result, 3)

    if (substr (datestr, 3, 1) = 'Z')
       zptr = 3
    else
       zptr = 6
    endif

    timestr = substr (datestr, 1, zptr)
    date    = substr (datestr, zptr+1, 99)

    dd   = substr (date, 1, 2)
    mmm  = substr (date, 3, 3)
    yyyy = substr (date, 6, 4)

    date2 = dd ' ' mmm ' ' yyyy
    say date2

--Dave

On 10/10/2011 9:37 AM, Stefan Gofferje wrote:
> Hi all!
>
> Is the date format (e.g. 6Z21OCT2011) hardcoded in GrADs or can it be
> changed easily?
>



More information about the gradsusr mailing list