Timezone.cpp 656 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // Timezone.cpp
  3. //
  4. // $Id: //poco/1.4/Foundation/src/Timezone.cpp#2 $
  5. //
  6. // Library: Foundation
  7. // Package: DateTime
  8. // Module: Timezone
  9. //
  10. // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
  11. // and Contributors.
  12. //
  13. // SPDX-License-Identifier: BSL-1.0
  14. //
  15. #include "Poco/Timezone.h"
  16. #include <ctime>
  17. #if defined(POCO_OS_FAMILY_WINDOWS)
  18. #if defined(_WIN32_WCE)
  19. #include "Timezone_WINCE.cpp"
  20. #else
  21. #include "Timezone_WIN32.cpp"
  22. #endif
  23. #elif defined(POCO_VXWORKS)
  24. #include "Timezone_VX.cpp"
  25. #else
  26. #include "Timezone_UNIX.cpp"
  27. #endif
  28. namespace Poco {
  29. int Timezone::tzd()
  30. {
  31. return utcOffset() + dst();
  32. }
  33. } // namespace Poco