This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch for epoch in hires_ms::usecs() value


Currently the hires_ms::usecs() method returns microseconds from the winnt
epoch (i.e. 1 January, 1601). It is then used in gettimeofday() without
adjustment, but that is meant to give seconds and microseconds since the
"Unix" epoch (i.e. 1 January, 1970).

The attached patch changes hires_ms::usecs() to return microseconds since
the "Unix" epoch. I've changed it there since that's the easiest place to
patch it :-)
// Conrad

2002-06-07  Conrad Scott  <conrad.scott@dsl.pipex.com>

 * times.cc (hires_ms::prime): Adjust epoch of initime_us from 1601
 to 1970.

Attachment: times.patch
Description: Binary data

Attachment: ChangeLog.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]