delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/23/18:47:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3D3DDCD1.D8239BE2@noaa.gov>
Date: Tue, 23 Jul 2002 18:46:41 -0400
From: "Arthur Taylor" <Arthur DOT Taylor AT noaa DOT gov>
Organization: DOC/NOAA/NWS - National Weather Service
X-Sender: "Arthur.Taylor" <Arthur DOT Taylor AT hqmail DOT nws DOT noaa DOT gov>
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Date Time Stamps?

This is a weird one...

I have a file in:
d:\cygwin\home\tayloraa\etc\newRock\labels.doc

According to an MS-command prompt its date is:
3/12/2002 10:06p

According to a "ls -l" from a cygwin bash shell its date is:
Mar 12 21:06

There seems to be a one hour discrepancy, probably due to Daylight
savings.  My D drive is an NTFS drive on a Win-2k machine, with a fairly
recent version of cygwin.

I ran into this when working with:
puts [clock format [file mtime $file] -format "%D %T"]
in various versions of Tcl.

According to cygtclsh its mtime is 3/12/02 21:06:24, however according
to tclsh (based on Mumit Khan's work) its mtime is 3/12/02 22:06:24.
Plain old MS-Windows based Tcl/Tk (8.3.2) weighs in on the side of
3/12/02 22:06:24.

Any suggestions as to the cause of the discrepancy?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019