ReactOS 0.4.16-dev-2104-gb84fa49
timeb.h File Reference
#include <corecrt.h>
#include <pshpack8.h>
#include <poppack.h>
Include dependency graph for timeb.h:

Go to the source code of this file.

Classes

struct  _timeb
 
struct  __timeb32
 
struct  __timeb64
 

Macros

#define _TIMEB_DEFINED
 
#define timeb   _timeb
 

Functions

_ACRTIMP void __cdecl _ftime32 (struct __timeb32 *)
 
_ACRTIMP void __cdecl _ftime64 (struct __timeb64 *)
 
static void __cdecl _ftime (struct _timeb *tb)
 
static void ftime (struct _timeb *ptr)
 

Macro Definition Documentation

◆ _TIMEB_DEFINED

#define _TIMEB_DEFINED

Definition at line 28 of file timeb.h.

◆ timeb

Definition at line 70 of file timeb.h.

Function Documentation

◆ _ftime()

static void __cdecl _ftime ( struct _timeb tb)
inlinestatic

Definition at line 67 of file timeb.h.

67{ _ftime64((struct __timeb64*)tb); }
_ACRTIMP void __cdecl _ftime64(struct __timeb64 *)
Definition: time.c:725
static const WCHAR tb[]
Definition: suminfo.c:285

◆ _ftime32()

_ACRTIMP void __cdecl _ftime32 ( struct __timeb32 buf)

Definition at line 756 of file time.c.

757{
758 struct __timeb64 buf64;
759
760 _ftime64( &buf64 );
761 buf->time = buf64.time;
762 buf->millitm = buf64.millitm;
763 buf->timezone = buf64.timezone;
764 buf->dstflag = buf64.dstflag;
765}
void CDECL _ftime64(struct __timeb64 *buf)
Definition: time.c:725
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751

Referenced by _ftime32_s(), and _ftime64_s().

◆ _ftime64()

_ACRTIMP void __cdecl _ftime64 ( struct __timeb64 buf)

Definition at line 725 of file time.c.

726{
728 FILETIME ft;
730
731 _tzset_init();
732
734
735 time = ((ULONGLONG)ft.dwHighDateTime << 32) | ft.dwLowDateTime;
736
738 buf->millitm = (time % TICKSPERSEC) / TICKSPERMSEC;
739 buf->timezone = MSVCRT___timezone / 60;
740 buf->dstflag = GetTimeZoneInformation( &tzinfo) == TIME_ZONE_ID_DAYLIGHT;
741}
VOID WINAPI GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime)
Definition: time.c:128
DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
Definition: timezone.c:262
#define TICKSPERSEC
Definition: time.c:236
__msvcrt_long MSVCRT___timezone
Definition: time.c:106
#define SECS_1601_TO_1970
Definition: time.c:235
static void _tzset_init(void)
Definition: time.c:182
#define TICKSPERMSEC
Definition: time.c:237
__u16 time
Definition: mkdosfs.c:8
#define TIME_ZONE_ID_DAYLIGHT
Definition: rtltypes.h:254
DWORD dwHighDateTime
Definition: mapidefs.h:66
DWORD dwLowDateTime
Definition: mapidefs.h:65
uint64_t ULONGLONG
Definition: typedefs.h:67

Referenced by _ftime(), _ftime32(), _ftime64_s(), _time32(), and _time64().

◆ ftime()

static void ftime ( struct _timeb ptr)
inlinestatic

Definition at line 72 of file timeb.h.

72{ _ftime(ptr); }
static PVOID ptr
Definition: dispmode.c:27
#define _ftime
Definition: timeb.h:62

Referenced by date_now(), test_RegQueryValueExPerformanceData(), time_to_filetime(), UnDosLine(), UnLslR(), and UnLslRLine().