This is the mail archive of the cygwin@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]

Re: cygwin1.dll bug in ftime


On Fri, Mar 22, 2002 at 06:24:00PM +0800, Wu Yongwei wrote:
>More tests show that gettimeofday has problems with timezones, too!

Calm down.

>Just terrible.

Yeah, we're mean.

  int gettimeofday(struct timeval *tp, void *tzp);

  DESCRIPTION
  The gettimeofday() function obtains the current time, expressed as
  seconds and microseconds since 00:00 Coordinated Universal Time (UTC),
  January 1, 1970, and stores it in the timeval structure pointed to by
  tp.  The resolution of the system clock is unspecified.

  If tzp is not a null pointer, the behaviour is unspecified.



  int ftime(struct timeb *tp);

  DESCRIPTION
  The ftime() function sets the time and millitm members of the timeb
  structure pointed to by tp to contain the seconds and milliseconds
  portions, respectively, of the current time in seconds since 00:00:00
  UTC (Coordinated Universal Time), January 1, 1970.  The contents of the
  timezone and dstflag members of tp after a call to ftime() are
  unspecified.


cgf
--
Please do not send me personal email with cygwin questions.
Use the resources at http://cygwin.com/ .

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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