Fixed
Status Update
Comments
en...@google.com <en...@google.com>
en...@google.com <en...@google.com> #2
my notes from looking at this when it was first raised:
freebsd and netbsd both have %s, but interpret it differently (gmtime versus localtime).
openbsd didn't have it.
ios matches freebsd. (which, not having thought about it deeply, seems more sane.)
glibc matches netbsd.
so ios and glibc disagree, and i'm left not sure what -- if anything -- to do about this: glibc was probably there first, but ios is probably more relevant.
of course, supporting it in strftime but not strptime is especially odd, so we should probably do _something_...
freebsd and netbsd both have %s, but interpret it differently (gmtime versus localtime).
openbsd didn't have it.
ios matches freebsd. (which, not having thought about it deeply, seems more sane.)
glibc matches netbsd.
so ios and glibc disagree, and i'm left not sure what -- if anything -- to do about this: glibc was probably there first, but ios is probably more relevant.
of course, supporting it in strftime but not strptime is especially odd, so we should probably do _something_...
en...@google.com <en...@google.com> #4
(i'd misread the BSD implementations: those that seemed to be using gmtime were actually using gmtime then converting back! so everyone seems to be in agreement.)
Description
%s The number of seconds since the Epoch, 1970-01-01 00:00:00
+0000 (UTC). Leap seconds are not counted unless leap second
support is available.
The format is a glibc extension so not certain that one would want it in bionic, but for compatibility and feature parity with strftime(3), which does support %s in bionic, it would be worth to consider.