SystemTime Class

The SystemTime class manages the system date and time. More...

Header: #include <systemtime.h>
qmake: QT += timedatesettings
Inherits: QObject

Properties

Public Functions

bool ntp() const
void setNtp(const bool aNtp)
void setTime(const QDateTime &aTime)
void setTimeZone(const QString &aTimeZone)
QDateTime time() const
QString timeZone() const

Signals

void ntpChanged()
void timeChanged()
void timeZoneChanged()

Detailed Description

Property Documentation

ntp : bool

Holds whether the system time is synchronized using NTP (Network Time Protocol).

Access functions:

bool ntp() const
void setNtp(const bool aNtp)

Notifier signal:

void ntpChanged()

time : QDateTime

Holds the current date and time.

Access functions:

QDateTime time() const
void setTime(const QDateTime &aTime)

Notifier signal:

void timeChanged()

timeZone : QString

Holds the current time zone string.

Access functions:

QString timeZone() const
void setTimeZone(const QString &aTimeZone)

Notifier signal:

void timeZoneChanged()

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.