Sha256: 2e55c59a978c92572ea54256b32f8620c22bea57c5476dfcba6af9d5a29135e7

Contents?: true

Size: 523 Bytes

Versions: 64

Compression:

Stored size: 523 Bytes

Contents

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

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

time_t wce_FILETIME2time_t(const FILETIME* f);

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

64 entries across 64 versions & 1 rubygems

Version Path
rhodes-3.3.5 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.4 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.3 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.3.beta.4 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.3.beta.3 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.3.beta.2 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.3.beta.1 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.2 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.2.beta.7 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.2.beta.6 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.2.beta.5 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.2.beta.4 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.2.beta.3 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.2.beta.2 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.2.beta.1 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.1 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.0 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.0.beta.3 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.0.beta.2 platform/shared/ruby/wince/sys/timeb.c
rhodes-3.3.0.beta.1 platform/shared/ruby/wince/sys/timeb.c