On 2022-10-18 08:03, Corinna Vinschen wrote: > On Sep 19 11:51, C Howland wrote: >> On Saturday, September 17, 2022 1:00 AM, Brian Inglis wrote: >>> newlib/libc/time/strftime.c(__strftime): >>> %i year in century [00..99] Synonym for "%y". Non-POSIX extension. >>> [tm_year] >>> %q GNU quarter of the year (from `<<1>>' to `<<4>>') [tm_mon] >>> %v OSX/Ruby VMS/Oracle date "%d-%b-%Y". Non-POSIX extension. [tm_mday, >>> tm_mon, tm_year] >>> add %i %q %v tests >>> %Z clarify current time zone *abbreviation* not "name" [tm_isdst] >>> --- >>> newlib/libc/time/strftime.c | 67 +++++++++++++++++++++++++++++++++++-- >>> 1 file changed, 64 insertions(+), 3 deletions(-) > - %i: Where is used and documented? I don't see this in glibc, not even > in the latest from the glibc git repo. Some portable language implementations for non-Unix platforms that I came across and documented but did not keep track of, and now can't find! > - %q: Ditto. For a GNU extension, it's surprisingly absent from the > most recent glibc code, or do I miss something? Looks like this may have been lost in the discussion: https://inbox.sourceware.org/libc-alpha/2f5f737e-2e42-08c6-ae2b-33aab798a1d9@draigBrady.com/ but as he says, it was already in gnulib, and made it into date the same month: https://git.savannah.gnu.org/cgit/coreutils.git/diff/?id=30012b290facf66551cdf395ace397903d00483d also in Perl and ksh93 printf %(...)T. > - %v: OSX/Ruby? Isn't that already gone? Also, it introduces another > ambiguous date format where %F or equivalent should be used instead. All the BSDs, Darwin, Oracle, and Ruby support it: it is localized, but not ambiguous, as it's dd-Mon-yyyy. > It's nice to add features, but it wouldn't hurt to have some > clarification and justification if it's non-standard stuff. > Availability in glibc or in the BSDs is typically justification enough, > but I don't see this here. See attached sh and log for doc and code searches. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry