Building on Windows from scratch - difftime problem found ( was datediff )

Derek Atkins warlord at MIT.EDU
Mon Jan 27 11:29:27 EST 2014

Gary Bilkus <mail at> writes:

> Given that time_t is always a signed integer value, wouldn't
> return (double)(time1-time2)
> just work anyway, at least as far as a patch for mingw is concerned?

Is it always a signed integer?  Can't it sometimes be unsigned?

This is the "year 2037" problem, where 32-bit unsigned time rolls over.
However there is also a "Year 2106" problem, which is where 32-bit
unsigned time rolls over.  I think there *are* some systems where it's
unsigned, but still 32 bits.  Or at least there are apps where that is
the case.


       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-devel mailing list