delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/23/15:46:55

X-Recipient: archive-cygwin AT delorie DOT 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:to:subject:mime-version:content-type
:content-transfer-encoding:date:from:in-reply-to:references
:message-id; q=dns; s=default; b=mvzkdxp04r0TrBouYOGMPdwTjJKKG/D
KGAsH5J9LCv9UULmAhQayxBTW7xyIRihAOaYsp+/iWW2BqZFT3/4dx5FpNGAgF+C
5e7/9S9YP1plQ1iTGAh58lxIOBnXPcRFuIy1T6lqvkzcSk69/zb3VFOt4/Ozer/G
AAQMZj+yFvHg=
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:to:subject:mime-version:content-type
:content-transfer-encoding:date:from:in-reply-to:references
:message-id; s=default; bh=NqHCndFpPmyfOvzgugceUqKZWDI=; b=V1ips
uGbl2arKXn5sSNCkT76EXTuJfqESOFEI1sJ7NV5MasEsZfScu95ncyAdzFdnMo0C
lwO9YT9u8ugL6wx/gRXslO3HjUzpoBlIqbaDEwD7T+/kqbC0H+W8cIe6nOAQycVe
4TO6W3zjUlKxcnVq/sUHXJ3HtsDmmCm0V2S9ZU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FROM_STARTS_WITH_NUMS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:4.72, HX-PHP-Originating-Script:501
X-HELO: smtp-out-no.shaw.ca
X-Authority-Analysis: v=2.2 cv=HahkdmM8 c=1 sm=1 tr=0 a=95A0EdhkF1LMGt25d7h1IQ==:117 a=95A0EdhkF1LMGt25d7h1IQ==:17 a=IkcTkHD0fZMA:10 a=SMorJkV_YP8A:10 a=G3gG6ho9WtcA:10 a=hPSZArYMLkZ_0NBVav8A:9 a=QEXdDO2ut3YA:10
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin strptime() is missing "%s" which strftime() has
X-PHP-Originating-Script: 501:rcmail.php
MIME-Version: 1.0
Date: Sun, 23 Jul 2017 12:46:30 -0700
From: Kaz Kylheku <920-082-4242 AT kylheku DOT com>
In-Reply-To: <BN3PR09MB0340BFF87B6B3E7A100C1A8EA5A50@BN3PR09MB0340.namprd09.prod.outlook.com>
References: <BN3PR09MB0340BFF87B6B3E7A100C1A8EA5A50 AT BN3PR09MB0340 DOT namprd09 DOT prod DOT outlook DOT com>
Message-ID: <9484711653ddb8d9ad8d125477e44757@mail.kylheku.com>
X-Sender: 920-082-4242 AT kylheku DOT com
User-Agent: Roundcube Webmail/0.9.2
X-CMAE-Envelope: MS4wfEDiTyDRs+xu23zqnFF1zofz2JQZ/TURLnBk2F7zty05l9qKEkLwjWhShHCm9VrlgDc1uPJEss0WZ4P4hufmW5zArw+8Epv4jxb5w2kMRCRh3nMiMXm/ CjXBf2Z561bySzBpe9w0bt/0DAFc5Mi7iSZInDElOMmNPo/8pQHC/Nrw
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v6NJkrXi018443

On 22.07.2017 13:48, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> Hello,
> 
> It looks like Cygwin implementation of strptime(3) cannot understand
> the "%s" format (seconds since Jan 1, 1970 UTC), which strftime() can.

But that's just scanning a decimal integer to time_t.

Where implemented, how does that deal with overflows and such compared 
to strtoul?


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


- Raw text -


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