>>>>> On Mon, 2 Nov 2015 09:16:16 -0500, Josef Sachs said:

>>>>> On Mon, 2 Nov 2015 08:56:05 -0500, Stefan Karpinski said:
>> Seems like libc must not check the TZ variable each time, possibly
>> due to performance considerations?

> Right.  So is there a way that I can get the julia process to do a tzset()
> after I do
> ENV["TZ"] = whatever
> ?

Is this the right approach?  It seems to work.

julia> tzset() = ccall(:tzset, Void, ())
tzset (generic function with 1 method)

julia> println(Libc.strftime("%Y-%m-%d %H:%M:%S",time()))
2015-11-02 10:40:39

julia> tzset()

julia> println(Libc.strftime("%Y-%m-%d %H:%M:%S",time()))
2015-11-02 15:40:48

Reply via email to