Sha256: 9f84d465fdb9bb15967e21634c4737b368ca6cd6195fd00e6e38b5f7e00abda2

Contents?: true

Size: 457 Bytes

Versions: 25

Compression:

Stored size: 457 Bytes

Contents

/***************************************************************
  timeb.c
***************************************************************/

#include <windows.h>
#include <time.h>
#include <sys/timeb.h>


int ftime(struct timeb *tp)
{
	SYSTEMTIME s;
	FILETIME   f;

	GetLocalTime(&s);
	SystemTimeToFileTime( &s, &f );

	tp->dstflag  = 0;
	tp->timezone = _timezone/60;
	tp->time     = wce_FILETIME2time_t(&f);
	tp->millitm  = s.wMilliseconds;

	return 0;
}

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rhodes-2.0.3 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.2 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0.rc2 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0.rc1 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0.beta11 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0.beta10 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0.beta9 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0.beta8 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0.beta7 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0.beta6 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0.beta4 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0.beta3 platform/shared/ruby/wince/sys/timeb.c
rhodes-1.5.5 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0.beta2 platform/shared/ruby/wince/sys/timeb.c
rhodes-2.0.0.beta1 platform/shared/ruby/wince/sys/timeb.c
rhodes-1.5.4 platform/shared/ruby/wince/sys/timeb.c
rhodes-1.5.3 platform/shared/ruby/wince/sys/timeb.c
rhodes-1.5.2 platform/shared/ruby/wince/sys/timeb.c
rhodes-1.5.1 platform/shared/ruby/wince/sys/timeb.c