Struct qt_core::q_time_zone::OffsetData
source · #[repr(C)]pub struct OffsetData { /* private fields */ }
Expand description
The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.
C++ class: QTimeZone::OffsetData
.
The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.
- OffsetData::atUtc The datetime of the offset data in UTC time.
- OffsetData::offsetFromUtc The total offset from UTC in effect at the datetime.
- OffsetData::standardTimeOffset The standard time offset component of the total offset.
- OffsetData::daylightTimeOffset The DST offset component of the total offset.
- OffsetData::abbreviation The abbreviation in effect at the datetime.
For example, for time zone "Europe/Berlin" the OffsetDate in standard and DST might be:
- atUtc = QDateTime(QDate(2013, 1, 1), QTime(0, 0, 0), Qt::UTC)
- offsetFromUtc = 3600
- standardTimeOffset = 3600
- daylightTimeOffset = 0
- abbreviation = "CET"
- atUtc = QDateTime(QDate(2013, 6, 1), QTime(0, 0, 0), Qt::UTC)
- offsetFromUtc = 7200
- standardTimeOffset = 3600
- daylightTimeOffset = 3600
- abbreviation = "CEST"
Implementations§
source§impl OffsetData
impl OffsetData
sourcepub unsafe fn abbreviation(&self) -> Ref<QString>
pub unsafe fn abbreviation(&self) -> Ref<QString>
Returns a reference to the abbreviation
field.
sourcepub unsafe fn abbreviation_mut(&self) -> Ref<QString>
pub unsafe fn abbreviation_mut(&self) -> Ref<QString>
Returns a mutable reference to the abbreviation
field.
sourcepub unsafe fn at_utc_mut(&self) -> Ref<QDateTime>
pub unsafe fn at_utc_mut(&self) -> Ref<QDateTime>
Returns a mutable reference to the atUtc
field.
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<OffsetData>>
) -> Ref<OffsetData>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<OffsetData>> ) -> Ref<OffsetData>
The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.
Calls C++ function: QTimeZone::OffsetData& QTimeZone::OffsetData::operator=(const QTimeZone::OffsetData& other)
.
The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.
- OffsetData::atUtc The datetime of the offset data in UTC time.
- OffsetData::offsetFromUtc The total offset from UTC in effect at the datetime.
- OffsetData::standardTimeOffset The standard time offset component of the total offset.
- OffsetData::daylightTimeOffset The DST offset component of the total offset.
- OffsetData::abbreviation The abbreviation in effect at the datetime.
For example, for time zone "Europe/Berlin" the OffsetDate in standard and DST might be:
- atUtc = QDateTime(QDate(2013, 1, 1), QTime(0, 0, 0), Qt::UTC)
- offsetFromUtc = 3600
- standardTimeOffset = 3600
- daylightTimeOffset = 0
- abbreviation = "CET"
- atUtc = QDateTime(QDate(2013, 6, 1), QTime(0, 0, 0), Qt::UTC)
- offsetFromUtc = 7200
- standardTimeOffset = 3600
- daylightTimeOffset = 3600
- abbreviation = "CEST"
sourcepub unsafe fn daylight_time_offset(&self) -> c_int
pub unsafe fn daylight_time_offset(&self) -> c_int
Returns the value of the daylightTimeOffset
field.
sourcepub unsafe fn new() -> CppBox<OffsetData>
pub unsafe fn new() -> CppBox<OffsetData>
The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.
Calls C++ function: [constructor] void QTimeZone::OffsetData::OffsetData()
.
The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.
- OffsetData::atUtc The datetime of the offset data in UTC time.
- OffsetData::offsetFromUtc The total offset from UTC in effect at the datetime.
- OffsetData::standardTimeOffset The standard time offset component of the total offset.
- OffsetData::daylightTimeOffset The DST offset component of the total offset.
- OffsetData::abbreviation The abbreviation in effect at the datetime.
For example, for time zone "Europe/Berlin" the OffsetDate in standard and DST might be:
- atUtc = QDateTime(QDate(2013, 1, 1), QTime(0, 0, 0), Qt::UTC)
- offsetFromUtc = 3600
- standardTimeOffset = 3600
- daylightTimeOffset = 0
- abbreviation = "CET"
- atUtc = QDateTime(QDate(2013, 6, 1), QTime(0, 0, 0), Qt::UTC)
- offsetFromUtc = 7200
- standardTimeOffset = 3600
- daylightTimeOffset = 3600
- abbreviation = "CEST"
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<OffsetData>>
) -> CppBox<OffsetData>
pub unsafe fn new_copy( other: impl CastInto<Ref<OffsetData>> ) -> CppBox<OffsetData>
The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.
Calls C++ function: [constructor] void QTimeZone::OffsetData::OffsetData(const QTimeZone::OffsetData& other)
.
The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.
- OffsetData::atUtc The datetime of the offset data in UTC time.
- OffsetData::offsetFromUtc The total offset from UTC in effect at the datetime.
- OffsetData::standardTimeOffset The standard time offset component of the total offset.
- OffsetData::daylightTimeOffset The DST offset component of the total offset.
- OffsetData::abbreviation The abbreviation in effect at the datetime.
For example, for time zone "Europe/Berlin" the OffsetDate in standard and DST might be:
- atUtc = QDateTime(QDate(2013, 1, 1), QTime(0, 0, 0), Qt::UTC)
- offsetFromUtc = 3600
- standardTimeOffset = 3600
- daylightTimeOffset = 0
- abbreviation = "CET"
- atUtc = QDateTime(QDate(2013, 6, 1), QTime(0, 0, 0), Qt::UTC)
- offsetFromUtc = 7200
- standardTimeOffset = 3600
- daylightTimeOffset = 3600
- abbreviation = "CEST"
sourcepub unsafe fn offset_from_utc(&self) -> c_int
pub unsafe fn offset_from_utc(&self) -> c_int
Returns the value of the offsetFromUtc
field.
sourcepub unsafe fn set_abbreviation(&self, value: impl CastInto<Ref<QString>>)
pub unsafe fn set_abbreviation(&self, value: impl CastInto<Ref<QString>>)
Sets the value of the abbreviation
field.
sourcepub unsafe fn set_at_utc(&self, value: impl CastInto<Ref<QDateTime>>)
pub unsafe fn set_at_utc(&self, value: impl CastInto<Ref<QDateTime>>)
Sets the value of the atUtc
field.
sourcepub unsafe fn set_daylight_time_offset(&self, value: c_int)
pub unsafe fn set_daylight_time_offset(&self, value: c_int)
Sets the value of the daylightTimeOffset
field.
sourcepub unsafe fn set_offset_from_utc(&self, value: c_int)
pub unsafe fn set_offset_from_utc(&self, value: c_int)
Sets the value of the offsetFromUtc
field.
sourcepub unsafe fn set_standard_time_offset(&self, value: c_int)
pub unsafe fn set_standard_time_offset(&self, value: c_int)
Sets the value of the standardTimeOffset
field.
sourcepub unsafe fn standard_time_offset(&self) -> c_int
pub unsafe fn standard_time_offset(&self) -> c_int
Returns the value of the standardTimeOffset
field.
Trait Implementations§
source§impl CppDeletable for OffsetData
impl CppDeletable for OffsetData
source§unsafe fn delete(&self)
unsafe fn delete(&self)
The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.
Calls C++ function: [destructor] void QTimeZone::OffsetData::~OffsetData()
.
The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.
- OffsetData::atUtc The datetime of the offset data in UTC time.
- OffsetData::offsetFromUtc The total offset from UTC in effect at the datetime.
- OffsetData::standardTimeOffset The standard time offset component of the total offset.
- OffsetData::daylightTimeOffset The DST offset component of the total offset.
- OffsetData::abbreviation The abbreviation in effect at the datetime.
For example, for time zone "Europe/Berlin" the OffsetDate in standard and DST might be:
- atUtc = QDateTime(QDate(2013, 1, 1), QTime(0, 0, 0), Qt::UTC)
- offsetFromUtc = 3600
- standardTimeOffset = 3600
- daylightTimeOffset = 0
- abbreviation = "CET"
- atUtc = QDateTime(QDate(2013, 6, 1), QTime(0, 0, 0), Qt::UTC)
- offsetFromUtc = 7200
- standardTimeOffset = 3600
- daylightTimeOffset = 3600
- abbreviation = "CEST"