[Gretl-users] year and period
Ignacio Diaz-Emparanza
ignacio.diaz-emparanza at ehu.es
Fri May 23 12:13:39 EDT 2008
El Friday 23 May 2008 15:43:24 Allin Cottrell escribió:
> <script>
> scalar endobs=lastobs(reskwh)
> sprintf send "%s", date(endobs)
> string quarter, year
> sscanf send, "%4s:%s", year, quarter
> </script>
>
> Allin
Good!, you win the prize to the smallest size code.
Thanks,
--
Ignacio Diaz-Emparanza
DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU
Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013732 | F.: +34 946013754
www.et.bs.ehu.es
More information about the Gretl-users
mailing list