33#include <NDEVR/Time.h>
34#include <NDEVR/String.h>
35#include <NDEVR/UUID.h>
48 static TimeZone convert(
const QTimeZone& zone)
51 time_zone.
name =
String(zone.id().toStdString());
56 static QTimeZone convert(
const TimeZone& zone)
58 QTimeZone time_zone = QTimeZone(zone.
name.
getAs<QString>().toLocal8Bit());
61 static QDateTime convert(
const Time& time,
const QTimeZone& zone)
64 date_time.setTimeZone(zone);
71 auto ids = QTimeZone::availableTimeZoneIds();
75 zones.
add(convert(QTimeZone(
id)));
81 return convert(QTimeZone::systemTimeZone());
86 return s_time_zone_manager;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
void add(t_type &&object)
Definition Buffer.hpp:199
t_type getAs() const
Definition String.h:334
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
uint08 getMilliseconds() const
Gets the timestamp in milliseconds.
Definition Time.h:193
Definition TimeZoneManager.h:46
QTimeZone m_q_current_timezone
Definition TimeZoneManager.h:90
TimeZone m_current_timezone
Definition TimeZoneManager.h:89
static NDEVR_BASE_API UUID CreateUUID()
Definition UUID.cpp:150
Definition TimeZoneManager.h:40
UUID id
Definition TimeZoneManager.h:43
String comment
Definition TimeZoneManager.h:42
String name
Definition TimeZoneManager.h:41