[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: os.time() modifies the argument
- From: Nicola Fontana <ntd@...>
- Date: Sun, 29 Jan 2017 23:52:27 +0100
Il Sun, 29 Jan 2017 11:44:49 -0200 Roberto Ierusalimschy <roberto@inf.puc-rio.br> scrisse:
> > [...]
> > After some research, I was surprised to discover that os.time()
> > modifies the datetime table passed in. Here is the proof:
> > [...]
>
> The parameter to 'os.time' is what is called an "in-out" parameter. It
> follows the behavior of the corresponding C function, 'mktime':
> ...
Man, that function is really ugly. Thank you for the explanation.
Ciao.
--
Nicola