[gradsusr] Date format

Stefan Gofferje stefan at saakeskus.fi
Tue Oct 11 01:34:23 EDT 2011


Hi,

I was more thinking of axis labels as e.g. in
http://www.saakeskus.fi/index.php?function=showmeteo&chart=tampere . As
my Finnish skills improve and not all Finns understand English
reasonably well, I started moving my weather website from English to
Finnish. Especially the timestamps often create confusion, as e.g. MAR
in Finnish is marraskuu = November. I tried to get only the day of month
with set tlsupp month but that removes the labels totally.

T:Stefan

On 10/11/2011 02:49 AM, Jennifer Adams wrote:
> You can also parse the result when you 'set t' or 'set time' and
> manipulate those strings to get the date in a format you like. In a
> descriptor file, the date strings in the TDEF and EDEF entries must be
> in the documented format. 
> --Jennifer
> 
> On Oct 10, 2011, at 5:02 PM, Dave Allured wrote:
> 
>> 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?

--------------------------------------------------------------------------------
This mail was scanned for malware by ClamAV (http://www.clamav.net/)
--------------------------------------------------------------------------------




More information about the gradsusr mailing list