Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

`struct xtime` and `xtime_get` were added in C11 as `struct timespec` and `timespec_get`:

http://port70.net/~nsz/c/c11/n1570.html#7.27.1p3

http://port70.net/~nsz/c/c11/n1570.html#7.27.2.5

There are some differences though. Not only the name and types differ. But also `timespec_get` is only required to support `TIME_UTC` and the specification is not as detailed.



Also, some proposed conversion specifiers are part of C99: %z and %l / %L as %Z.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: