lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Back and forth UTC dates
From
: Viacheslav Usov <via.usov@
...
>
Date
: Tue, 28 Mar 2017 20:59:57 +0200
On Tue, Mar 28, 2017 at 8:21 PM, Roberto Ierusalimschy
<
roberto@inf.puc-rio.br
>
wrote:
> TZ = os.difftime(os.time(os.date("*
t", 0)), os.time(os.date("!*t", 0)))
This assumes that the time zone bias now is equal to what it was at the epoch time.
Secondly, this assumes further that the bias does not change between the two calls to os.date(). Which in my time zone could have been violated about three days ago.
Cheers,
V.
Follow-Ups
:
Re: Back and forth UTC dates
,
Roberto Ierusalimschy
References
:
Back and forth UTC dates
,
Javier Mr
Re: Back and forth UTC dates
,
Francisco Olarte
Re: Back and forth UTC dates
,
Javier Mr
Re: Back and forth UTC dates
,
Luiz Henrique de Figueiredo
Re: Back and forth UTC dates
,
Roberto Ierusalimschy
Prev by Date:
Re: Back and forth UTC dates
Next by Date:
Re: Back and forth UTC dates
Previous by thread:
Re: Back and forth UTC dates
Next by thread:
Re: Back and forth UTC dates
Index(es):
Date
Thread