From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3334 invoked by alias); 24 Jul 2017 13:24:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 3249 invoked by uid 89); 24 Jul 2017 13:24:36 -0000 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 Received: from nihcesxway6.hub.nih.gov (HELO nihcesxway6.hub.nih.gov) (128.231.90.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Jul 2017 13:24:34 +0000 X-SBRS-Extended: Low X-IronPortListener: ces-out Received: from uccbx04.nih.gov (HELO ces.nih.gov) ([156.40.79.154]) by nihcesxway6.hub.nih.gov with ESMTP; 24 Jul 2017 09:24:32 -0400 Received: from uccbX02.nih.gov (156.40.79.152) by uccbx04.nih.gov (156.40.79.154) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Mon, 24 Jul 2017 09:24:31 -0400 Received: from gcc01-CY1-obe.outbound.protection.outlook.com (156.40.79.132) by uccbX02.nih.gov (156.40.79.152) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Mon, 24 Jul 2017 09:24:31 -0400 Received: from BY1PR09MB0343.namprd09.prod.outlook.com (10.160.105.25) by BY1PR09MB0341.namprd09.prod.outlook.com (10.160.105.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10; Mon, 24 Jul 2017 13:24:30 +0000 Received: from BY1PR09MB0343.namprd09.prod.outlook.com ([10.160.105.25]) by BY1PR09MB0343.namprd09.prod.outlook.com ([10.160.105.25]) with mapi id 15.01.1282.017; Mon, 24 Jul 2017 13:24:29 +0000 From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" To: "cygwin@cygwin.com" Subject: Re: Cygwin strptime() is missing "%s" which strftime() has Date: Mon, 24 Jul 2017 13:54:00 -0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=lavr@ncbi.nlm.nih.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" Content-Transfer-Encoding: quoted-printable 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 X-SW-Source: 2017-07/txt/msg00322.txt.bz2 > > > But that's just scanning a decimal integer to time_t. > >=20 > > 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 extens= ion 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