blob: 838ae0798d0a836179992f2ccccf40bdff8a1def (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/***************************************************************
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;
}
|