[GRASSLIST:5859] Re: scripting: time with awk/python/perl???
Hamish
hamish_nospam at yahoo.com
Sat Feb 19 22:46:10 EST 2005
> Hello, I'm writing a shall script calling different grass
> command, but i need to handle datetime variables: how can
> it be done?
for the script processing?
Did you try the "date" program?
I am not sure exactly what you are trying to do, but maybe this helps:
DATE_STR=`date +"%d %b %Y"`
echo $DATE_STR
It is often useful to use julian days if you have to do any processing
based on the date:
JULIAN_DAY=`date +"%j"`
YEAR=`date +"%Y"`
see also the r.timestamp module
Hamish
More information about the grass-user
mailing list