ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jaroslav Hajtmar <hajtmar@gyza.cz>
To: ntg-context@ntg.nl
Subject: Re: mail merge in mkiv?
Date: Mon, 10 Nov 2014 00:17:38 +0100	[thread overview]
Message-ID: <545FF612.9040602@gyza.cz> (raw)
In-Reply-To: <545FE150.1060503@gmx.es>

Hello Pablo.
Here is example of add days in Lua:

\startluacode
x=5 -- add five days
tex.print ('Actual date is :'..os.date('%d.%m.%Y')..'\\crlf')
tex.print ( 'And x days added date is :'.. os.date('%d.%m.%Y',os.time()+ 
x * 24 * 3600))
\stopluacode


Jaroslav Hajtmar



Dne 9.11.2014 22:49, Pablo Rodriguez napsal(a):
> On 11/09/2014 03:59 PM, Jaroslav Hajtmar wrote:
>> Hello Pablo.
>> The module I created about before 4 years ago, when I wanted to learn to
>> program in Lua. Therefore, I think that my module is too rudimentary and
>> not quite optimized. Unfortunately, since I do not now use much Lua, so
>> I dare not reasonably somehow finish. Before inclusion in third party
>> modules that would probably have to take some experienced Lua expert and
>> redo the whole module. For my needs it is enough. I use this module very
>> often for my practise (I am teacher). Perhaps it helped a little.
>> Greetings Jaroslav Hajtmar
> Many thanks for the module, Jaroslav.
>
> BTW, wouldn’t you know how can I set a \date using Lua that adds x
> working days to the current date?
>
> Many thanks for your help,
>
>
> Pablo

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2014-11-09 23:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-03 19:41 Pablo Rodriguez
2014-11-03 21:52 ` Aditya Mahajan
2014-11-05 15:42 ` Jaroslav Hajtmar
2014-11-06 17:57   ` Pablo Rodriguez
2014-11-07 11:44     ` Jaroslav Hajtmar
2014-11-08 10:09       ` Pablo Rodriguez
2014-11-09 14:59         ` Jaroslav Hajtmar
2014-11-09 21:49           ` Pablo Rodriguez
2014-11-09 23:17             ` Jaroslav Hajtmar [this message]
2014-11-10 16:46               ` Pablo Rodriguez
2014-11-10  7:38           ` Keith Schultz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=545FF612.9040602@gyza.cz \
    --to=hajtmar@gyza.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).