This page is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
I see nothing in the standard that clearly indicates that negative values of "seconds since the Epoch" are required; time_t is specified in the page on <sys/types.h> only to be "an integer type"; size_t is specified as being "an unsigned integer type" and ssize_t and some other types are specified as being "signed integer types", so this seems to indicate that the current Single UNIX Specification allows time_t to be signed or unsigned. Guy Harris ( talk) 18:28, 20 June 2016 (UTC)
This page is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
I see nothing in the standard that clearly indicates that negative values of "seconds since the Epoch" are required; time_t is specified in the page on <sys/types.h> only to be "an integer type"; size_t is specified as being "an unsigned integer type" and ssize_t and some other types are specified as being "signed integer types", so this seems to indicate that the current Single UNIX Specification allows time_t to be signed or unsigned. Guy Harris ( talk) 18:28, 20 June 2016 (UTC)