🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #23902

Re: Clock widget for different timezones

#23902
From: Paul Martz
Date: Thu, 20 Jun 1991 19:17
44 lines
1730 bytes
In article <9129@gollum.twg.com>, david@twg.com (David S. Herron) writes:
> A customer wants to have a row of clocks showing different timezones.
> Unfortunately the clock widget doesn't handle that case very well.
> But a little simple hackery should suffice.  Changes follow.  This
> is relative to R4/lib/Xaw/Clock{.c,P.h,.h} distributed from MIT and
> patched to patchlevel 18.
> 
> [... changes deleted ...]
> 
> 		David
> 
> -- 
> <- David Herron, an MMDF & WIN/MHS guy, <david@twg.com>
> <-
> <-
> <- "MS-DOS? Where we're going we don't need MS-DOS." --Back To The Future


A while ago someone posted the following script to this newsgroup. I
think it does what you want, and alot simpler than the changes you
describe.

 --- cut here ---
#! /bin/sh
TZ=PST8PDT
export TZ
xclock -geometry 70x70+3+0 -title PST 2> /dev/null &
sleep 1
TZ=MST7MDT
export TZ
xclock -geometry 70x70+130+0 -title MST 2> /dev/null &
sleep 1
TZ=CST6CDT
export TZ
xclock -geometry 70x70+257+0 -title CST 2> /dev/null &
sleep 1
TZ=EST5EDT
export TZ
xclock -geometry 70x70+384+0 -title EST 2> /dev/null &
 --- cut here ---
--

   -paul	pmartz@dsd.es.com
		Evans & Sutherland
Technical Details
Message-ID: <1991Jun20.191730.22020@dsd.es.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!orca!undies!pmartz
References: <9129@gollum.twg.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!orca!undies!pmartz
From: pmartz@undies.dsd.es.com (Paul Martz)
Newsgroups: comp.windows.x
Subject: Re: Clock widget for different timezones
Message-ID: <1991Jun20.191730.22020@dsd.es.com>
Date: 20 Jun 91 19:17:30 GMT
References: <9129@gollum.twg.com>
Sender: usenet@dsd.es.com
Reply-To: pmartz@undies.dsd.es.com (Paul Martz)
Organization: Evans & Sutherland Computer Corp., Salt Lake City, UT
Lines: 44
Nntp-Posting-Host: 130.187.85.56