Hi Andrea,

> In your patch I see that you set `TZ=UTC`, while reading the date(1p) 
> manual I only see mention of `TZ=UTC0`. Do you know if there's any 
> difference between the two?

Thanks for your email. It actually made me look into the differences between
the two — I am not sure I had considered this at all before, and had assumed
they were some kind of internal alias… if I thought about it at all.

In practice, TZ=UTC and TZ=UTC0 do behave identically, but using UTC0 bypasses
any kind of lookup in your timezone database. It appears that glibc can
parse "UTC0" internally, whilst "UTC" will require poking in 
/usr/share/zoneinfo.
(Similar with "Etc/UTC"). Perhaps if you don't have tzdata installed, "UTC"
won't work?

I will say that "UTC0" will appear unfamiliar to most developers, so saving
one disk lookup — that is probably already cached! — is probably a little
silly in a build of a Debian package.

Still, interesting to know. :)  Thanks again for prompting me to look it up.


Best wishes,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] 🍥 chris-lamb.co.uk
       `-

Reply via email to