GNU bug report logs - #72023
feature request for date(1): strptime-style format string when you don't want date to guess

Previous Next

Package: coreutils;

Reported by: <mark.yagnatinsky <at> barclays.com>

Date: Wed, 10 Jul 2024 02:20:01 UTC

Severity: wishlist

Full log


Message #17 received at 72023 <at> debbugs.gnu.org (full text, mbox):

From: <mark.yagnatinsky <at> barclays.com>
To: <eggert <at> cs.ucla.edu>, <72023 <at> debbugs.gnu.org>
Subject: RE: bug#72023: feature request for date(1): strptime-style format
 string when you don't want date to guess
Date: Wed, 10 Jul 2024 13:12:00 +0000
Re: strptime is mistake: you think that particular function is bad, or the whole idea of
"here is a string describing the format, please parse accordingly" is a bad idea?

-----Original Message-----
From: Paul Eggert <eggert <at> cs.ucla.edu> 
Sent: Wednesday, July 10, 2024 8:57 AM
To: Yagnatinsky, Mark : IT (NYK) <mark.yagnatinsky <at> barclays.com>; 72023 <at> debbugs.gnu.org
Subject: Re: bug#72023: feature request for date(1): strptime-style format string when you don't want date to guess


CAUTION: This email originated from outside our organisation - eggert <at> cs.ucla.edu Do not click on links, open attachments, or respond unless you recognize the sender and can validate the content is safe.
On 7/10/24 13:59, mark.yagnatinsky--- via GNU coreutils Bug Reports wrote:
> BSD date has this flag

Unfortunately it uses -f for the flag, and -f already has a well-established different meaning in GNU 'date'. We could add it to GNU date under a different (long) option name, though we'd still be incompatible with BSD 'date'.

Again, if someone wants to write the code and (just as important) documentation, and also the tests, go for it. I tend to think strptime is a mistake, so I'm not likely to volunteer.

This message is for information purposes only. It is not a recommendation, advice, offer or solicitation to buy or sell a product or service, nor an official confirmation of any transaction. It is directed at persons who are professionals and is intended for the recipient(s) only. It is not directed at retail customers. This message is subject to the terms at: https://www.ib.barclays/disclosures/web-and-email-disclaimer.html. 

For important disclosures, please see: https://www.ib.barclays/disclosures/sales-and-trading-disclaimer.html regarding marketing commentary from Barclays Sales and/or Trading desks, who are active market participants; https://www.ib.barclays/disclosures/barclays-global-markets-disclosures.html regarding our standard terms for Barclays Investment Bank where we trade with you in principal-to-principal wholesale markets transactions; and in respect to Barclays Research, including disclosures relating to specific issuers, see: https://publicresearch.barclays.com.
__________________________________________________________________________________ 
If you are incorporated or operating in Australia, read these important disclosures: https://www.ib.barclays/disclosures/important-disclosures-asia-pacific.html.
__________________________________________________________________________________
For more details about how we use personal information, see our privacy notice: https://www.ib.barclays/disclosures/personal-information-use.html. 
__________________________________________________________________________________

This bug report was last modified 278 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.