delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Resetting time via time server doesn't affect cygwin 'date' |
References: | <f5bpqp8wy7m DOT fsf AT calexico DOT inf DOT ed DOT ac DOT uk> <imvla1$upo$1 AT dough DOT gmane DOT org> <20110330164538 DOT GB25534 AT calimero DOT vinschen DOT de> |
From: | ht AT inf DOT ed DOT ac DOT uk (Henry S. Thompson) |
Date: | Wed, 30 Mar 2011 18:41:14 +0100 |
In-Reply-To: | <20110330164538.GB25534@calimero.vinschen.de> (Corinna Vinschen's message of "Wed, 30 Mar 2011 18:45:38 +0200") |
Message-ID: | <f5bd3l8wlol.fsf@calexico.inf.ed.ac.uk> |
User-Agent: | Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.21 (linux) |
MIME-Version: | 1.0 |
X-Edinburgh-Scanned: | at treacle.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Corinna Vinschen writes: > There's an internal counter which is initialized by the first Cygwin > process started in a session. So time chanegs made by a Cygwin process > are seen by other Cygwin processes in the same session, but time changes > outside of Cygwin or outside of the same session are not seen, unless all > Cygwin processes in a session are stopped and restarted. This will be > fixed at one point. So running something like this date -s `cmd /c echo %time%` either _ad lib_ or as a cron job every few days will limit the damage, at the cost of losing a bit across the board each time you do it, since the situation is _not_ symmetrical. That is, because date -s in Cygwin _does_ reset the windows clock. . . ht -- Henry S. Thompson, School of Informatics, University of Edinburgh 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 651-1426, e-mail: ht AT inf DOT ed DOT ac DOT uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail from me _always_ has a .sig like this -- mail without it is forged spam] -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |