I'd like to configure some of my notebooks to assume all calculations using dates, times and locations (notably AstronomicalData
, but others too) take place at the Greenwich Observatory.
I know I can achieve this by unprotecting $TimeZone
and setting it to 0
, as with
$GeoLocation = {51.476786, 0.00000000};
Unprotect[$TimeZone];
$TimeZone = 0;
Protect[$TimeZone];
but worry that this might have some other consequences that would confuse date and time functions.
Is it safe to do this? Does changing the value of $TimeZone
have side effects I should avoid?
Block
? In any case, I don't see any side effects, other than some date conversions and W|A calls getting messed up. $\endgroup$Block[{$TimeZone=0}, ...]
, wasn't working for me for some functions, at least notDateList
]. Also, I'd prefer to make the change global, rather than have to remember to make the change each time I do something that depends on it. $\endgroup$TimeZone
? That's what is seems to be for. E.g.Table[DateString[TimeZone -> i], {i, 0, 6}]
from the documentation. $\endgroup$Block
may not work, simply becauseDateList
looks broken. Try$TimeZone=0
and thenDateList[...,TimeZone->0]
. That should leave the date given unchanged, but (if you're machine timezone isn't 0) it won't. I may not even be able to do what I want with a global change of $TimeZone. $\endgroup$