/src/poco/Foundation/src/Timezone.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // |
2 | | // Timezone.cpp |
3 | | // |
4 | | // Library: Foundation |
5 | | // Package: DateTime |
6 | | // Module: Timezone |
7 | | // |
8 | | // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. |
9 | | // and Contributors. |
10 | | // |
11 | | // SPDX-License-Identifier: BSL-1.0 |
12 | | // |
13 | | |
14 | | |
15 | | #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) |
16 | | #define _CRT_SECURE_NO_WARNINGS |
17 | | #endif |
18 | | |
19 | | |
20 | | #include "Poco/Timezone.h" |
21 | | #include <ctime> |
22 | | |
23 | | |
24 | | #if defined(POCO_OS_FAMILY_WINDOWS) |
25 | | #include "Timezone_WIN32.cpp" |
26 | | #elif defined(POCO_VXWORKS) |
27 | | #include "Timezone_VX.cpp" |
28 | | #else |
29 | | #include "Timezone_UNIX.cpp" |
30 | | #endif |
31 | | |
32 | | |
33 | | namespace Poco { |
34 | | |
35 | | |
36 | | int Timezone::tzd() |
37 | 0 | { |
38 | 0 | return utcOffset() + dst(); |
39 | 0 | } |
40 | | |
41 | | |
42 | | } // namespace Poco |