Sha256: 29060385610df54a856c017303da7e8601a5f6da01941c94d97a838a0287c0fb

Contents?: true

Size: 601 Bytes

Versions: 17

Compression:

Stored size: 601 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);
extern long _timezone;

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;
}

int _ftime(struct timeb *tp)
{
    return ftime(tp);
}

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rhodes-7.6.0 platform/shared/ruby/wince/sys/timeb.c
rhodes-7.5.1 platform/shared/ruby/wince/sys/timeb.c
rhodes-7.4.1 platform/shared/ruby/wince/sys/timeb.c
rhodes-7.1.17 platform/shared/ruby/wince/sys/timeb.c
rhodes-6.2.0 platform/shared/ruby/wince/sys/timeb.c
rhodes-6.0.11 platform/shared/ruby/wince/sys/timeb.c
rhodes-5.5.18 platform/shared/ruby/wince/sys/timeb.c
rhodes-5.5.17 platform/shared/ruby/wince/sys/timeb.c
rhodes-5.5.15 platform/shared/ruby/wince/sys/timeb.c
rhodes-5.5.0.22 platform/shared/ruby/wince/sys/timeb.c
rhodes-5.5.2 platform/shared/ruby/wince/sys/timeb.c
rhodes-5.5.0.7 platform/shared/ruby/wince/sys/timeb.c
rhodes-5.5.0.3 platform/shared/ruby/wince/sys/timeb.c
rhodes-5.5.0 platform/shared/ruby/wince/sys/timeb.c
tauplatform-1.0.3 platform/shared/ruby/wince/sys/timeb.c
tauplatform-1.0.2 platform/shared/ruby/wince/sys/timeb.c
tauplatform-1.0.1 platform/shared/ruby/wince/sys/timeb.c