[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: date library
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 12 Sep 2001 11:38:55 -0300 (EST)
>Has anyone implemented a date library? Preferably in Lua.
I thought Roberto had written one, but I couldn't find a reference in the
Anyway, the functions time and date in 4.1 (should work in 4.0) make it really
easy to compute with dates: convert a date to time, add the appropriate offsets,
convert it back to date, and there you have it: the date x days from today, for
instance. In some C libraries, you can even add x to t.day directly.