On Fri, Feb 21, 2020 at 11:11 PM Reinhard Kotucha
wrote:
>
> texlua ./timeofday.lua
>
> I also tried
>
> texlua --shell-escape ./timeofday.lua
>
> Same result.
>
> Regards,
> Reinhard
>
TZ is passed to the env.:
local function time_of_day (TZ)
os.setenv('TZ', TZ)
local time = os.g
On 2020-02-21 at 23:00:58 +0100, luigi scarso wrote:
> On Fri, Feb 21, 2020 at 10:50 PM Reinhard Kotucha
> wrote:
>
> > Hi,
> > I just tried this with texlua 1.10.0:
> >
> >
> > local function time_of_day (TZ)
> > os.setenv('TZ', TZ)
>
On Fri, Feb 21, 2020 at 10:50 PM Reinhard Kotucha
wrote:
> Hi,
> I just tried this with texlua 1.10.0:
>
>
> local function time_of_day (TZ)
> os.setenv('TZ', TZ)
> local time = os.gettimeofday()
> print(os.date('%c', math.floor(time)))
>
Hi,
I just tried this with texlua 1.10.0:
local function time_of_day (TZ)
os.setenv('TZ', TZ)
local time = os.gettimeofday()
print(os.date('%c', math.floor(time)))
end
time_of_day ('America/New_York')
time_of_day ('Europe/Paris')