tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: strftime(3) oddities with %s, %z



    Date:        Mon, 31 Oct 2022 09:13:48 -0400 (EDT)
    From:        Mouse <mouse%Rodents-Montreal.ORG@localhost>
    Message-ID:  <202210311313.JAA10664%Stone.Rodents-Montreal.ORG@localhost>

  | If %s were documented as printing the number that would be obtained by
  | calling mktime() on the struct tm?  That would (a) be telling the
  | actual truth, (b) would match existing implementations, and (c) would
  | not mislead people into thinking it did something it doesn't (and,
  | without ABI and possibly API changes, can't).

That I agree with, our documentation is lacking.   It should say that.
And more.

  | Where is it documented what works and what doesn't?

UTSL ?   The doc in POSIX (most of which is not being changed) is
better than our man page in this regard.

kre



Home | Main Index | Thread Index | Old Index