Would it make sense to announce the time zone and offset to UTC of the
conference location there? 10:20am in Manassas is *when* in my office?
R'
Manassas is in Virginia, USA. Which is EDT at this time of year, so
UTC-04:00. (Or is it +4? I can never remember what the sign of the
offset means...)
Donal.
To help you remember: they're still partying when you're turning in in
the UK ;-)
-Alex
currently many of them are at the Wine BOF...
That's the part I can remember. It's how to convert to a sign that
confuses me every time. :-)
Donal.
A. http://www.google.com/search?client=safari&rls=en&q=time%20in%20manassas%20virginia&ie=UTF-8&oe=UTF-8
B. EDT
C. UTC - 4h
D. clock format [clock seconds] -timezone :America/New_York
Kevin et al., please help me with D. (or perhaps E.). Is there an elegant
way to map
EDT -> UTC - 4h
with 8.5 of [clock]?
Like this? (works correct only for integer hour distances)
% proc tzdiff {tz1 {tz2 UTC}} {
expr {[scan [clock format [clock sec] -timezone $tz1 -format %H]
%d]
-[scan [clock format [clock sec] -timezone $tz2 -format %H]
%d]}
}
% tzdiff :America/New_York
-4
Yes, but....
time {
http://www.google.com/search?client=safari&rls=en&q=time%20in%20manassas%20virginia&ie=UTF-8&oe=UTF-8
EDT
UTC - 4h
clock format [clock seconds] -timezone :America/New_York
} 10
=> 125768374 microseconds per iteration
time {
set fd [open $tcl_conference_page_on_screen r]
set offset [read $fd]
close $eyes
} 10
=> 936768 microseconds per iteration
R', reducing my CO2 footprint wherever possible ;-)
You may want to compute [clock sec] just once to be robust to "lack of
luck" ;-)
You may also feed a constant time there (choose in January or July of
1970 according to your DST preferences).
-Alex
The reason why tzdata are so big is that they change so often (mostly
because of different dates for switching between "winter" and
"sumjmer" (daylight saving) time, and a difference between two
locations in January 1970 might not be the same in February 2008, so
one should ask for it with a concrete point in time. But that could of
course better be passed in as an argument, instead of using [clock
seconds].
Ron.
--
Ron Fox
NSCL
Michigan State University
East Lansing, MI 48824-1321
Does the following do what you seek?
% clock format [clock seconds] -format "%Z %z" \
-timezone :America/New_York
EDT -0400
--
73 de ke9tv/2, Kevin
You can guess what's next: how do I ask clock what -timezone-s it recognizes?