Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cxfa_timezoneprovider.cpp
Go to the documentation of this file.
1
// Copyright 2017 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
include
"xfa/fxfa/parser/cxfa_timezoneprovider.h"
8
9
#
include
<
stdlib
.
h
>
10
#
include
<
time
.
h
>
11
12
#
include
"build/build_config.h"
13
14
static
bool
g_bProviderTimeZoneSet
=
false
;
15
16
#
if
BUILDFLAG
(
IS_WIN
)
17
#
define
TIMEZONE
_timezone
18
#
define
TZSET
_tzset
19
#
else
20
#
define
TZSET
tzset
21
#
define
TIMEZONE
timezone
22
#
endif
23
24
CXFA_TimeZoneProvider
::
CXFA_TimeZoneProvider
() {
25
if
(!
g_bProviderTimeZoneSet
) {
26
g_bProviderTimeZoneSet
=
true
;
27
TZSET
();
28
}
29
tz_minutes_ =
TIMEZONE
/ -60;
30
}
31
32
CXFA_TimeZoneProvider
::~
CXFA_TimeZoneProvider
() =
default
;
CXFA_TimeZoneProvider
Definition
cxfa_timezoneprovider.h:10
CXFA_TimeZoneProvider::CXFA_TimeZoneProvider
CXFA_TimeZoneProvider()
Definition
cxfa_timezoneprovider.cpp:24
CXFA_TimeZoneProvider::~CXFA_TimeZoneProvider
~CXFA_TimeZoneProvider()
TIMEZONE
#define TIMEZONE
Definition
cxfa_timezoneprovider.cpp:21
g_bProviderTimeZoneSet
static bool g_bProviderTimeZoneSet
Definition
cxfa_timezoneprovider.cpp:14
TZSET
#define TZSET
Definition
scoped_set_tz.cpp:23
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fxfa
parser
cxfa_timezoneprovider.cpp
Generated on Sat Sep 21 2024 01:04:59 for Qt by
1.12.0