blob: aad8eecff0f3cdca07ea20501d5102b735087296 (
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
26
27
28
29
30
31
32
33
|
/*****************************************************************
|
| Neptune - Time: WinRT Implementation
|
| (c) 2002-2013 Gilles Boccon-Gibod
| Author: Gilles Boccon-Gibod (bok@bok.net)
|
****************************************************************/
/*----------------------------------------------------------------------
| includes
+---------------------------------------------------------------------*/
#include "NptWinRtPch.h"
#include "NptTime.h"
#include "NptResults.h"
/*----------------------------------------------------------------------
| logging
+---------------------------------------------------------------------*/
//NPT_SET_LOCAL_LOGGER("neptune.system.win32.time")
/*----------------------------------------------------------------------
| NPT_DateTime::GetTimeZone
+---------------------------------------------------------------------*/
NPT_Int32
NPT_DateTime::GetLocalTimeZone()
{
TIME_ZONE_INFORMATION tz_info;
DWORD result = GetTimeZoneInformation(&tz_info);
if (result == TIME_ZONE_ID_INVALID) return 0;
return -tz_info.Bias;
}
|