PIP 5.6.1
Platform-Independent Primitives
Functions
pitime_win.h File Reference

PITime conversions for Windows This file provides conversion functions between Windows time structures (FILETIME, SYSTEMTIME) and PIP time structures (PISystemTime, PIDateTime). More...

#include "pibase.h"
#include "pitime.h"
#include <windows.h>

Functions

PISystemTime FILETIME2PISystemTime (const FILETIME &t)
 Converts FILETIME to PISystemTime. Converts Windows FILETIME structure to PISystemTime. FILETIME is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC).
 
PIDateTime SYSTEMTIME2PIDateTime (const SYSTEMTIME &t)
 Converts SYSTEMTIME to PIDateTime. Converts Windows SYSTEMTIME structure to PIDateTime. SYSTEMTIME represents a date and time using individual members for month, day, year, etc.
 
PIDateTime FILETIME2PIDateTime (const FILETIME &t)
 Converts FILETIME to PIDateTime. Converts Windows FILETIME to PIDateTime. The FILETIME is first converted to local time, then to SYSTEMTIME, and finally to PIDateTime.
 
SYSTEMTIME PIDateTime2SYSTEMTIME (const PIDateTime &dt)
 Converts PIDateTime to SYSTEMTIME. Converts PIDateTime to Windows SYSTEMTIME structure.
 
FILETIME PIDateTime2FILETIME (const PIDateTime &dt)
 Converts PIDateTime to FILETIME. Converts PIDateTime to Windows FILETIME. The PIDateTime is first converted to SYSTEMTIME, then to local FILETIME, and finally to UTC FILETIME.
 

Detailed Description

PITime conversions for Windows This file provides conversion functions between Windows time structures (FILETIME, SYSTEMTIME) and PIP time structures (PISystemTime, PIDateTime).