Article: 4680 of comp.protocols.time.ntp
From: David Schwartz <davids@webmaster.com>
Newsgroups: comp.protocols.time.ntp
Subject: Re: Is a delibrate offset possible?
Date: Thu, 27 Mar 2003 03:24:35 -0800
Organization: WebMaster Incorporated
Lines: 26
Message-ID: <3E82DF73.F99F1822@webmaster.com>
References: <3e6ccc9d.16802440@news.btinternet.com> <3E6D9A2B.524DD6E1@marconi.com> <y2%ba.76712$sf5.51300@rwcrnsc52.ops.asp.att.net> <3e721fea.29600883@news.btinternet.com>
NNTP-Posting-Host: whenever.youwant.to
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: nntp.webmaster.com 1048764275 31674 206.171.168.130 (27 Mar 2003 11:24:35 GMT)
X-Complaints-To: usenet@nntp.webmaster.com
NNTP-Posting-Date: Thu, 27 Mar 2003 11:24:35 +0000 (UTC)
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en
Path: news.meer.net!sea-read.news.verio.net!dfw-artgen!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!xmission!news-out.spamkiller.net!propagator2-maxim!propagator3-maxim!news-in.superfeed.net!nntp.webmaster.com!not-for-mail
Xref: archive.mv.meer.net comp.protocols.time.ntp:4680

Dave wrote:
> 
> "DeFrance Clarke" <clag235@lni.wa.gov> shouted to the populus:
> 
> >One other possibility is to create a special time zone that is 2 minutes
> >_ahead_ (faster) than your local timezone.
> >If you are really lucky you can set your VCR software to use that time zone
> >and your other logins to use the accurate time.
> >
> 
> Good idea!  Thanks for that.  Yes, I've managed to set up my own
> timezone, set the system to that, and then set the individual users
> back to use "GB" in their .bash_profile, I've set the PC to sync to my
> main server, and it all works :)
> 
> Thanks for your help.
> --Dave

	Another possibility would be to 'strace' the program you're using and
find out how it's reading the system time. Odds are it's doing it
through a libc call like 'gettimeofday'. Just write a .so file that
hooks 'gettimeofday', calls the real 'gettimeofday', offsets it, and
then returns the fudged value. Activate your hook with the LD_PRELOAD
environment variable for just that program.

	DS


