FreeRDP
|
#include <winpr/config.h>
#include <winpr/environment.h>
#include <winpr/wtypes.h>
#include <winpr/timezone.h>
#include <winpr/crt.h>
#include <winpr/file.h>
#include "../log.h"
#include <time.h>
#include <unistd.h>
#include "TimeZones.h"
#include "WindowsZones.h"
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 (const char *links[], size_t count) |
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) |
#define TAG WINPR_TAG("timezone") |
WinPR: Windows Portable Runtime Time Zone
Copyright 2012 Marc-Andre Moreau marca ndre .more au@g mail. 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.
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 | ) |
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 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |