[NTG-context] date calculated with currentdate plus n days

Pablo Rodriguez oinos at gmx.es
Tue Aug 14 07:29:39 CEST 2018


On 08/14/2018 01:46 AM, Henri Menke wrote:
> On top of that I recommend to use context.date to get the correct 
> formatting according to the current language options:
> 
> \def\duedate{\ctxlua{
>    local t = os.date('*t', os.time()+ 10 * 24 * 3600)
>    context.date{ d = t.day, m = t.month, y = t.year }
> }}

Many thanks for your reply, Henri.

Where are those context.* Lua commands documented?

I want to generate an xtable using Lua code, but I don’t know where to read.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list