bug#72023: feature request for date(1): strptime-style format

2024-09-09 Thread Stephane Chazelas
I agree strptime()-style input format specification is badly missing in GNU date. Most other implementations support it: - BSD with -f since 1997 (on FreeBSD at least; see also -v for adjustments) - ast-open's with -p since 2004 (also via standard getdate() DATEMSK) - busybox' with -D since 2006 -

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

2024-07-10 Thread mark . yagnatinsky--- via GNU coreutils Bug Reports
Fair enough... I was worried you were objecting to the whole concept, not just that one function -Original Message- From: Paul Eggert Sent: Wednesday, July 10, 2024 12:23 PM To: Yagnatinsky, Mark : IT (NYK) ; 72...@debbugs.gnu.org Subject: Re: bug#72023: feature request for date(1

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

2024-07-10 Thread Paul Eggert
On 7/10/24 15:12, mark.yagnatin...@barclays.com wrote: Re: strptime is mistake: you think that particular function is bad Yes, though I lack the time to go into details right now.

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

2024-07-10 Thread mark . yagnatinsky--- via GNU coreutils Bug Reports
NYK) ; 72...@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 - egg...@cs.ucla.edu Do not click on links, open attachments, or respond unless yo

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

2024-07-10 Thread Paul Eggert
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 b

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

2024-07-10 Thread mark . yagnatinsky--- via GNU coreutils Bug Reports
024 6:45 AM To: Yagnatinsky, Mark : IT (NYK) ; 72...@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 - egg...@cs.ucla.edu Do not click on l

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

2024-07-10 Thread Paul Eggert
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 some

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

2024-07-09 Thread mark . yagnatinsky--- via GNU coreutils Bug Reports
I suspect this has been requested many times over the decades but I haven't found anything in the issue tracker so... The date command lets you choose my output format, but for input it tries to figure it out without hints. For interactive use, this is great. For usage in scripts, this is less t