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#include "Poco/Timezone.h"
16#include <ctime>
17
18
19#if defined(POCO_OS_FAMILY_WINDOWS)
20#if defined(_WIN32_WCE)
21#include "Timezone_WINCE.cpp"
22#else
23#include "Timezone_WIN32.cpp"
24#endif
25#elif defined(POCO_VXWORKS)
26#include "Timezone_VX.cpp"
27#else
28#include "Timezone_UNIX.cpp"
29#endif
30
31
32namespace Poco {
33
34
35int Timezone::tzd()
36{
37 return utcOffset() + dst();
38}
39
40
41} // namespace Poco
42