On 10/14/25 10:19 PM, Grisha Levit wrote:
When rounding up the fractional portion of the printed value, increment
the seconds portion if necessary (instead of printing ':', i.e. '0'+10).

Thanks for the report.
Also, I'm assuming it was not intentional that values with a precision
of 0 were being truncated while all other precisions were rounded (but
maybe it was?).

A zero precision just cuts the decimal point and everything following it.
This is what ksh93 does, and consistent with what POSIX interp 267
specified (the TIMEFORMAT part never actually made it into the standard).

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

  • [PATCH] time: fi... Grisha Levit
    • Re: [PATCH]... Chet Ramey
      • Re: [PA... Grisha Levit
        • Re:... Chet Ramey
          • ... Pourko via Bug reports for the GNU Bourne Again SHell
            • ... Duncan Roe via Bug reports for the GNU Bourne Again SHell
        • Re:... Chet Ramey

Reply via email to