"Dave Hart" <[email protected]> wrote in message
news:cambsiyakrebebf3xkohy+v4dyavynqnmeymwhwhhu2ze1g1...@mail.gmail.com...
On Thu, Apr 5, 2012 at 06:05, David J Taylor
<[email protected]> wrote:
It seems that, on Windows at least, ntpq -crv gives results in local
time,
and not in UTC. Is that intended? Is there a switch for results in
UTC?
Yes, it's intentional. There is no built-in switch to use UTC but you
can do it on most systems by setting/changing the TZ environment
variable. On Windows:
set TZ=GMT0 & ntpq -crv & set TZ=
on Unix:
env TZ=GMT0 ntpq -crv
Of course, neither is necessary if your local timezone is UTC to begin
with. I use UTC on my Windows systems because Windows misrepresents
historical and future timestamps which are in the other half of the
year, in DST terms.
Cheers,
Dave Hart
Thanks, Dave. That's a pity, as I don't like the work-rounds.
I know what you mean about file timestamps being different, although I
wouldn't use the word "misrepresent".
Cheers,
David
_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions