FreeRDP
winpr/libwinpr/timezone/timezone.c File Reference
#include <winpr/wtypes.h>
#include <winpr/timezone.h>
#include <winpr/crt.h>
#include "../log.h"
#include <time.h>
#include <unistd.h>
#include "TimeZones.c"
#include "WindowsZones.c"

Macros

#define TAG   WINPR_TAG("timezone")
 

Functions

static UINT64 winpr_windows_gmtime (void)
 
static char * winpr_read_unix_timezone_identifier_from_file (FILE *fp)
 
static char * winpr_get_timezone_from_link (void)
 
static char * winpr_get_unix_timezone_identifier_from_file (void)
 
static BOOL winpr_match_unix_timezone_identifier_with_list (const char *tzid, const char *list)
 
static TIME_ZONE_ENTRY * winpr_detect_windows_time_zone (void)
 
static const TIME_ZONE_RULE_ENTRY * winpr_get_current_time_zone_rule (const TIME_ZONE_RULE_ENTRY *rules, UINT32 count)
 
DWORD GetTimeZoneInformation (LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
 
BOOL SetTimeZoneInformation (const TIME_ZONE_INFORMATION *lpTimeZoneInformation)
 
BOOL SystemTimeToFileTime (const SYSTEMTIME *lpSystemTime, LPFILETIME lpFileTime)
 
BOOL FileTimeToSystemTime (const FILETIME *lpFileTime, LPSYSTEMTIME lpSystemTime)
 
BOOL SystemTimeToTzSpecificLocalTime (LPTIME_ZONE_INFORMATION lpTimeZone, LPSYSTEMTIME lpUniversalTime, LPSYSTEMTIME lpLocalTime)
 
BOOL TzSpecificLocalTimeToSystemTime (LPTIME_ZONE_INFORMATION lpTimeZoneInformation, LPSYSTEMTIME lpLocalTime, LPSYSTEMTIME lpUniversalTime)
 
DWORD GetDynamicTimeZoneInformation (PDYNAMIC_TIME_ZONE_INFORMATION pTimeZoneInformation)
 
BOOL SetDynamicTimeZoneInformation (const DYNAMIC_TIME_ZONE_INFORMATION *lpTimeZoneInformation)
 
BOOL GetTimeZoneInformationForYear (USHORT wYear, PDYNAMIC_TIME_ZONE_INFORMATION pdtzi, LPTIME_ZONE_INFORMATION ptzi)
 
BOOL SystemTimeToTzSpecificLocalTimeEx (const DYNAMIC_TIME_ZONE_INFORMATION *lpTimeZoneInformation, const SYSTEMTIME *lpUniversalTime, LPSYSTEMTIME lpLocalTime)
 
BOOL TzSpecificLocalTimeToSystemTimeEx (const DYNAMIC_TIME_ZONE_INFORMATION *lpTimeZoneInformation, const SYSTEMTIME *lpLocalTime, LPSYSTEMTIME lpUniversalTime)
 
DWORD EnumDynamicTimeZoneInformation (const DWORD dwIndex, PDYNAMIC_TIME_ZONE_INFORMATION lpTimeZoneInformation)
 
DWORD GetDynamicTimeZoneInformationEffectiveYears (const PDYNAMIC_TIME_ZONE_INFORMATION lpTimeZoneInformation, LPDWORD FirstYear, LPDWORD LastYear)
 

Macro Definition Documentation

#define TAG   WINPR_TAG("timezone")

WinPR: Windows Portable Runtime Time Zone

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

DWORD EnumDynamicTimeZoneInformation ( const DWORD  dwIndex,
PDYNAMIC_TIME_ZONE_INFORMATION  lpTimeZoneInformation 
)
BOOL FileTimeToSystemTime ( const FILETIME *  lpFileTime,
LPSYSTEMTIME  lpSystemTime 
)
DWORD GetDynamicTimeZoneInformation ( PDYNAMIC_TIME_ZONE_INFORMATION  pTimeZoneInformation)
DWORD GetDynamicTimeZoneInformationEffectiveYears ( const PDYNAMIC_TIME_ZONE_INFORMATION  lpTimeZoneInformation,
LPDWORD  FirstYear,
LPDWORD  LastYear 
)
DWORD GetTimeZoneInformation ( LPTIME_ZONE_INFORMATION  lpTimeZoneInformation)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL GetTimeZoneInformationForYear ( USHORT  wYear,
PDYNAMIC_TIME_ZONE_INFORMATION  pdtzi,
LPTIME_ZONE_INFORMATION  ptzi 
)
BOOL SetDynamicTimeZoneInformation ( const DYNAMIC_TIME_ZONE_INFORMATION lpTimeZoneInformation)
BOOL SetTimeZoneInformation ( const TIME_ZONE_INFORMATION lpTimeZoneInformation)
BOOL SystemTimeToFileTime ( const SYSTEMTIME *  lpSystemTime,
LPFILETIME  lpFileTime 
)
BOOL SystemTimeToTzSpecificLocalTime ( LPTIME_ZONE_INFORMATION  lpTimeZone,
LPSYSTEMTIME  lpUniversalTime,
LPSYSTEMTIME  lpLocalTime 
)
BOOL SystemTimeToTzSpecificLocalTimeEx ( const DYNAMIC_TIME_ZONE_INFORMATION lpTimeZoneInformation,
const SYSTEMTIME *  lpUniversalTime,
LPSYSTEMTIME  lpLocalTime 
)
BOOL TzSpecificLocalTimeToSystemTime ( LPTIME_ZONE_INFORMATION  lpTimeZoneInformation,
LPSYSTEMTIME  lpLocalTime,
LPSYSTEMTIME  lpUniversalTime 
)
BOOL TzSpecificLocalTimeToSystemTimeEx ( const DYNAMIC_TIME_ZONE_INFORMATION lpTimeZoneInformation,
const SYSTEMTIME *  lpLocalTime,
LPSYSTEMTIME  lpUniversalTime 
)
static TIME_ZONE_ENTRY* winpr_detect_windows_time_zone ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static const TIME_ZONE_RULE_ENTRY* winpr_get_current_time_zone_rule ( const TIME_ZONE_RULE_ENTRY *  rules,
UINT32  count 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static char* winpr_get_timezone_from_link ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static char* winpr_get_unix_timezone_identifier_from_file ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL winpr_match_unix_timezone_identifier_with_list ( const char *  tzid,
const char *  list 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static char* winpr_read_unix_timezone_identifier_from_file ( FILE *  fp)
static

Here is the caller graph for this function:

static UINT64 winpr_windows_gmtime ( void  )
static

Here is the caller graph for this function: