[tz] strftime %s

Paul Eggert eggert at cs.ucla.edu
Mon Jan 22 08:20:30 UTC 2024


On 2024-01-21 23:50, Brian.Inglis--- via tz wrote:
> Does the specification prohibit defining time_t using decimal types 
> supported on legacy mainframes? ;^>

Yes, I think draft POSIX 202x/D4 does that, as it uses a width 
terminology that means a binary representation, not a BCD or other 
decimal representation.

One bit of wiggle room is that draft POSIX doesn't require two's 
complement; ones' complement and signed magnitude are also allowed. Even 
this wiggle room will go away eventually, as C2x will require two's 
complement and POSIX surely will do so as well in the next major release 
after 202x.



More information about the tz mailing list