[tz] strftime %s

Robert Elz kre at munnari.OZ.AU
Fri Jan 12 08:02:10 UTC 2024


    Date:        Thu, 11 Jan 2024 12:28:54 -0800
    From:        Paul Eggert via tz <tz at iana.org>
    Message-ID:  <45af6b1e-4bc8-4b8e-86f5-101046061434 at cs.ucla.edu>

  | It's easy to generate the equivalent 
  | of %s with sprintf on the corresponding time_t value,

That's true for C code, %s is mostly used with date +%s which doesn't
need the modified strftime_*() functions (though I don't believe there's
a standard PRIxxx macro for time_t).

  | If I understand things correctly, it's impossible for an implementation 
  | to conform to both POSIX-2017 and draft next POSIX in this area.

What do you believe the problem to be?   I don't believe there was
any intent to change things (beyond adding the new tm_ fields), and
if something slipped in by accident it might not be too late to fix it.

kre



More information about the tz mailing list