mu578 commented on PR #8201:
URL: https://github.com/apache/nuttx/pull/8201#issuecomment-1872680316

   Posix time_t is signed as a consensus. Originally it triggered some 
controversy and debates over whether it should be signed or unsigned, the 
problem is not new.
   
   Why does this consensus exist? Because you cannot represent times prior to 
the Unix epoch, and Posix requires it to be an integral type that's it.
   
   Now, it has an impact on the sign comparison implementation, but it also has 
an impact on interpolating with other Unix-like sub-systems and/or third-party 
libraries.
   
   The truth is, there is a consensus and most people are adhering to it. The 
issue revolves around informal practice. I think that the original change was 
not a random mistake, but rather an attempt to follow the consensus found in 
other popular projects.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to