> Apologies if this question is too rudimentary, but I need to get
the
> current data
date, that is
Opps. :-)
> from the os. I cannot find a hansl comand or function to do this [...]
True, there's no hansl function to do this. What do you need it for?
I would like to write a function, or code fragment, that can take as arguments the
frequency and number of periods (N) and set up a data set consisting of N periods where
the last date is the current period.
>From your Windows example (omitted here) it seems you want an ISO
8601
string (YYYY-MM-DD). This could be provided easily enough as a built-in
function using the C library. But do you want the date relative to the local
timezone, or UTC, or some US timezone in which a particular data server is
located?
Well...I was thinking monthly data as the highest frequency, so time zone would be less
important. But that is kind of stupid. I should probably also think about weekly, daily or
even hourly data. I think local time zone could be a start, but could there be an optional
argument to indicate the desired time zone? Maybe separate time and date functions?
ISO 8601 seemed a good place to start, but I have been thinking that my tendency to deal
with dates as strings might not be the best approach?
Thanks Logan
Allin
_______________________________________________
Gretl-devel mailing list
Gretl-devel(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel