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
qlocaltime_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QLOCALTIME_P_H
6#define QLOCALTIME_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an implementation
13// detail. This header file may change from version to version without notice,
14// or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/private/qglobal_p.h>
20#include <QtCore/private/qdatetime_p.h>
21
22QT_BEGIN_NAMESPACE
23
24// Packaging system time_t functions
25namespace QLocalTime {
26#ifndef QT_BOOTSTRAPPED
27// Support for V4's Date implelenentation.
28// Each returns offset from UTC in seconds (or 0 if unknown).
29// V4 shall need to multiply by 1000.
30// Offset is -ve East of Greenwich, +ve west of Greenwich.
31// Add it to UTC seconds since epoch to get local seconds since nominal local epoch.
33Q_CORE_EXPORT int getUtcOffset(qint64 atMSecsSinceEpoch);
34#endif // QT_BOOTSTRAPPED
35
36// Support for QDateTime
37QDateTimePrivate::ZoneState utcToLocal(qint64 utcMillis);
38QString localTimeAbbbreviationAt(qint64 local, QDateTimePrivate::TransitionOptions resolve);
39QDateTimePrivate::ZoneState mapLocalTime(qint64 local, QDateTimePrivate::TransitionOptions resolve);
40
43}
44
45QT_END_NAMESPACE
46
47#endif // QLOCALTIME_P_H
QString localTimeAbbbreviationAt(qint64 local, QDateTimePrivate::TransitionOptions resolve)
SystemMillisRange computeSystemMillisRange()
int getUtcOffset(qint64 atMSecsSinceEpoch)
int getCurrentStandardUtcOffset()
QDateTimePrivate::ZoneState utcToLocal(qint64 utcMillis)
QDateTimePrivate::ZoneState mapLocalTime(qint64 local, QDateTimePrivate::TransitionOptions resolve)
#define IC(N)