lua-users home
lua-l archive

Re: os.time() modifies the argument

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Il 2017年1月29日 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

AltStyle によって変換されたページ (->オリジナル) /