diff options
author | P. J. McDermott <pj@pehjota.net> | 2022-03-16 20:06:49 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2022-03-16 21:40:43 (EDT) |
commit | 3e666656dc9ac50dd3bf36d35d70c403dd860c9f (patch) | |
tree | 1b2c2e7588a51575a90fa8bac25c48738e5b839b /NEWS | |
parent | 0aeffaf5707d8133f693d450833ec8371bcd6869 (diff) | |
download | atsign-3e666656dc9ac50dd3bf36d35d70c403dd860c9f.zip atsign-3e666656dc9ac50dd3bf36d35d70c403dd860c9f.tar.gz atsign-3e666656dc9ac50dd3bf36d35d70c403dd860c9f.tar.bz2 |
main: Use difftime() instead of comparing time_t
C99 ยง 7.23.1 defines time_t as an "arithmetic [type] capable of
representing times" with "implementation-defined" "range and precision
of times representable". It doesn't require that time1 > time0 for
time1 later than time0.
See also:
http://computer-programming-forum.com/47-c-language/8d7dec65bd1ddafe.htm
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions