C
Qul::PlatformInterface::DateTime Class
class Qul::PlatformInterface::DateTimeThe DateTime class provides a native representation of data and time values in milliseconds. More...
Header: | #include <platforminterface/datetime.h> |
Since: | Qt Quick Ultralite (Platform) 2.12 |
Public Functions
DateTime() | |
DateTime(uint64_t msecs) | |
uint64_t | toMilliseconds() const |
Detailed Description
Unlike QDateTime
or QDate
in Qt, it does not handle time zones, locale-specific formating, or type conversion from string. It represents a timestamp value in milliseconds. When exposed to QML, the DateTime
class is automatically mapped to the QML date
value type.
Member Function Documentation
[constexpr]
DateTime::DateTime()
Constructs a null timestamp (equivalent to 0 millisecond).
[constexpr]
DateTime::DateTime(uint64_t msecs)
Constructs a timestamp initialized with the given millisecond value.
[constexpr]
uint64_t DateTime::toMilliseconds() const
Returns the stored timestamp value in milliseconds..
Available under certain Qt licenses.
Find out more.