|
Hi Bruce,
It may not be as easy as changing to unsigned as negative values have meaning. If you call a function such as ctime() passing a negative value you will receive in some implementations a date prior to 1970 (-100000 for instance is Tue Dec 30 20:13:20 1969) so you may find various library functions not working exactly as expected... and most developers using time_t would probably also be using the C runtime library.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.