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:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=YBB xdXrbkxibQTB56eKWSr4hrkGWcnA9zBt/iSvwHq+yj6J32E+kMZ8shNDBmFfaQmI GddpYzKCSE00yX2onb3Dg5P6mTt//vtW2ODhxE4w5cjBjGFobuxOO5fhUmazly/3 Lllx2cpMvsNF6B1yZJFy15TI0tPMFD4LRfFtf1/E= 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:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; s=default; bh=aDVqTBVTA TcDX3QVIBvS+ys9cVE=; b=oS98uLjR9EZq6PQAnd1O5GTHQ/teX/6dyTQUfloAX M/jybyEP4ikNKDa8eQWyMlojrH64ih9YGcs2NuOWeYljSrF3hTu/2PhYb9Z9AOWs RoKH3VSSEBue8zri1lY/4DNteIht0ukgEnZtDRYnkk7BuN9micB7UQxPEve7v14Y v8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=contractor X-HELO: nihcesxway6.hub.nih.gov X-SBRS-Extended: Low X-IronPortListener: ces-out From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" To: "cygwin AT cygwin DOT com" Subject: Re: Cygwin strptime() is missing "%s" which strftime() has Date: Mon, 24 Jul 2017 13:24:29 +0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=lavr AT ncbi DOT nlm DOT nih DOT gov; x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BY1PR09MB0341;7:jnTWw4+MUBFNVfetl6qbwJjdELbU5hBCUDIe/wXSSnNWjfdB/1PSNNyOfZAOXW7U+y54ekKNkKeYG4yt0Y+XufZDWEhMHG2Tcxt0q2geQ3BIxga9X7ruYD6/ZdV+mD3BjwPGptr5cPyHH5ibqjHDQkA97gDvE4KTxoBFZ2/5scBRffMN/xlfi97o1fbfC3IuwahkHwXAZL6DyEJz0KFkqHy+XTAacYcb5Mnbx1xQUO4vYLYE5qnyffiQmJCG4kAjoziOK1Xn3mc7HwxW2oIjj/yMdA0l55yY8GGmm0oGcOqvC1jrgOXBv+XueiLR/Hi+YOyxGtlBO5a7Dg+EseTFvKVYmpIPJGzyTBFYLgTdgpdwUOJ3n27wJJaTv5qFmWNuK9mXzOWdH5RiQLJQew95Pr+h0cojEquTIG2py2HiparsNw4iE+k4rIrgTQbtdsUKskUynmnmSPvE7AIZujFlV2t5Iaud77j2gnqmkZxCbWJTSv5SbaZUJnXtx0wPcimB3/kaHE2iaHWvIsADmVPq2lxIvteHVh+EJJzHlEMvhdjo/4aLaQ4fK1GE8Sfx7ZqNy2deXiddX0Neygq/anuAEDsSr2g+w9I1zLx0DFCgZUqoHqyPQHR+6F9NG9PIpJj/0w9p3TY5WQrbTp3az1unyf4KCd998wYu4oBe6Aqjo706o1XCGF3V2FWIApUwxWH+S1EqfNDpzeX/UcZ6xxmIWD8U3LE3zHrRIH3xYp4HMDVv7pQ9Xdvv54vp1sht6M6FbNTB5WYtI49Aetn58gK38bTd7l80LR43ebRjTtt5iLU= x-ms-office365-filtering-correlation-id: ecda5057-7ac0-4304-dbe1-08d4d2975086 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BY1PR09MB0341; x-ms-traffictypediagnostic: BY1PR09MB0341: x-exchange-antispam-report-test: UriScan:; x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY1PR09MB0341;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY1PR09MB0341; x-forefront-prvs: 0378F1E47A x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39840400002)(39450400003)(39400400002)(39410400002)(39850400002)(199003)(189002)(81166006)(7696004)(8676002)(5660300001)(74316002)(81156014)(1730700003)(25786009)(50986999)(33656002)(2351001)(2906002)(105586002)(106356001)(3280700002)(478600001)(3660700001)(14454004)(54356999)(8936002)(101416001)(53936002)(2501003)(68736007)(5640700003)(9686003)(99286003)(55016002)(66066001)(189998001)(6116002)(102836003)(3846002)(77096006)(110136004)(38730400002)(2900100001)(86362001)(6436002)(229853002)(6246003)(6506006)(42882006)(6916009)(7736002)(305945005)(97736004);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR09MB0341;H:BY1PR09MB0343.namprd09.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2017 13:24:29.6830 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 14b77578-9773-42d5-8507-251ca2dc2b06 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR09MB0341 X-OriginatorOrg: ncbi.nlm.nih.gov Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v6ODOwFc024954 > > > But that's just scanning a decimal integer to time_t. > > > > It's not a question of whether I can or can't convert a string into an > > integer, rather it's a question about portability of code that uses %s > I see your point but... "portability" is kind of the wrong expression > here. If you have portability in mind, you should *not* use %s at all. The point is, if I can use "%s" with strftime() on Cygwin, then I should be able to use "%s" with strptime(), but currently there's a disconcert with that. Indeed, "%s" is a GNU extension yet it has been on Linux for years, so why not here but only 50%? Anton Lavrentiev Contractor NIH/NLM/NCBI -- 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