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

Jan U. Hasecke juh+ntg-context at mailbox.org
Mon Aug 13 19:37:36 CEST 2018


On 13.08.2018 17:57, Pablo Rodriguez wrote:

> if you don’t mind using Lua, here you have it:
> 
>     \starttext
>     \def\duedate{\cldcontext{os.date('\letterpercent d/\letterpercent
>         m/\letterpercent Y', os.time()+ 10 * 24 * 3600)}}
> 
>     \duedate
>     \stoptext
> 
> Just in case it helps,

Thanks!

I thought it should be possible with lua, but I found no entry point to
use lua in context by defining new commands.

juh





More information about the ntg-context mailing list