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
qtimezoneprivate_win.cpp File Reference

(29a6cb338604d53c74a06ce0eca8c9a9039a98d0)

#include "qtimezone.h"
#include "qtimezoneprivate_p.h"
#include "qdatetime.h"
#include "qdebug.h"
#include <private/qnumeric_p.h>
#include <private/wcharhelpers_win_p.h>
#include <algorithm>
#include <private/qwinregistry_p.h>
Include dependency graph for qtimezoneprivate_win.cpp:

Go to the source code of this file.

Classes

struct  _REG_TZI_FORMAT

Macros

#define MAX_KEY_LENGTH   255

Typedefs

typedef struct _REG_TZI_FORMAT REG_TZI_FORMAT

Functions

 QT_REQUIRE_CONFIG (timezone_locale)

Variables

static const wchar_t tzRegPath [] = LR"(SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones)"
static const wchar_t currTzRegPath [] = LR"(SYSTEM\CurrentControlSet\Control\TimeZoneInformation)"
constexpr qint64 MSECS_PER_DAY = 86400000LL
constexpr qint64 JULIAN_DAY_FOR_EPOCH = 2440588LL
constexpr int FIRST_DST_YEAR = 1900

Macro Definition Documentation

◆ MAX_KEY_LENGTH

#define MAX_KEY_LENGTH   255

Definition at line 29 of file qtimezoneprivate_win.cpp.

Typedef Documentation

◆ REG_TZI_FORMAT

Function Documentation

◆ QT_REQUIRE_CONFIG()

QT_REQUIRE_CONFIG ( timezone_locale )

Variable Documentation

◆ currTzRegPath

const wchar_t currTzRegPath = LR"(SYSTEM\CurrentControlSet\Control\TimeZoneInformation)"
static

Definition at line 40 of file qtimezoneprivate_win.cpp.

◆ FIRST_DST_YEAR

int FIRST_DST_YEAR = 1900
constexpr

Definition at line 70 of file qtimezoneprivate_win.cpp.

◆ JULIAN_DAY_FOR_EPOCH

qint64 JULIAN_DAY_FOR_EPOCH = 2440588LL
constexpr

Definition at line 43 of file qtimezoneprivate_win.cpp.

◆ MSECS_PER_DAY

qint64 MSECS_PER_DAY = 86400000LL
constexpr

Definition at line 42 of file qtimezoneprivate_win.cpp.

◆ tzRegPath

const wchar_t tzRegPath = LR"(SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones)"
static

Definition at line 39 of file qtimezoneprivate_win.cpp.