X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=VDt4dJxo+rbvUGvb
	5GwNHVCdTfZUZPduZZWUN2TRNH/hQdaI9sGDx8WhHM4m6HRnQefiu3s0TXSiy3Ig
	2t4uerTz3kR0s05/ArG1+l3uX3AerU9Ix1BGuu3KHDX/VULHUy6MvkDaIZXZOYiw
	kK1tHH+CODZC3IGEW/90DS7frFQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=OznvOpmmzDL2GtYSBAyin3
	YkZgM=; b=yw9LuTqo+wR71MlKbFE1s76IrGFrRU3Tyq2nu47NIIQ1l5wAg+vuwT
	ZTZ/RFj27xH2bYI5AHmS3woPVyO/gF+VhfDTJmliP5LejjVKHoBBgQQb4ppQXFKp
	R8q6IPlUUoVXEIydknwYhukQICBBmfdSRPSk9UPU+RjWbfkz7bw4k=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*M:cygwin, H*Ad:U*yselkowitz, birth, Birth
X-HELO: mx1.redhat.com
Subject: Re: cygwin python os.stat gives wrong ctime
To: cygwin@cygwin.com
References: <574A486B.6000506@houseofpain.org> <20160530083901.GE12694@calimero.vinschen.de>
From: Yaakov Selkowitz <yselkowitz@cygwin.com>
Message-ID: <5f2834d1-a8ba-2810-f02e-178d99171a29@cygwin.com>
Date: Mon, 30 May 2016 16:57:44 -0500
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
MIME-Version: 1.0
In-Reply-To: <20160530083901.GE12694@calimero.vinschen.de>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 2016-05-30 03:39, Corinna Vinschen wrote:
> On May 28 21:39, Mitch Deoudes wrote:
> Cygwin's ctime is Change time, not Birth time, that's why Cygwin's stat
> structure comes with an additional st_birthtime as on the BSDs.
>
> I have no idea if python has a compile time option to make st_birthtime
> visible, though.

It already is:

$ python
Python 2.7.10 (default, Jun  1 2015, 18:17:45)
[GCC 4.9.2] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import os
 >>> st = os.stat('python.cygport')
 >>> print(st)
posix.stat_result(st_mode=33188, st_ino=281474978441936, 
st_dev=3300977488, st_nlink=1, st_uid=197608, st_gid=197121, 
st_size=3535, st_atime=1363164377, st_mtime=1464116088, st_ctime=1464116088)
 >>> print(st.st_birthtime)
1391923515.0

-- 
Yaakov

--
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

