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


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: mark.yagnatinsky <at> barclays.com, 72023 <at> debbugs.gnu.org
Subject: bug#72023: feature request for date(1): strptime-style format string when you don't want date to guess
Date: Wed, 10 Jul 2024 12:44:52 +0200
I'm dubious. I've never had much luck with strptime, as in practice it 
has its own glitches that are even worse than what 'date' currently 
uses. For example, it's dicey in non-C locales, and it mishandles time 
zones and daylight saving transitions even in the C locale.

That being said, if someone can write the code and documentation and 
test cases it might be a good thing to have - particularly if some other 
'date' implementation is already doing that sort of thing and people 
have had good experience with it.




This bug report was last modified 279 days ago.

Previous Next


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