Skip to main content

QTimeZone

Struct QTimeZone 

Source
pub struct QTimeZone { /* private fields */ }
Expand description

C++ class: QTimeZone.

Implementations§

Source§

impl QTimeZone

Source

pub unsafe fn abbreviation( &self, at_date_time: impl CastInto<Ref<QDateTime>>, ) -> CppBox<QString>

Calls C++ function: QString QTimeZone::abbreviation(const QDateTime& atDateTime) const.

Source

pub unsafe fn available_time_zone_ids() -> CppBox<QListOfQByteArray>

Calls C++ function: static QList<QByteArray> QTimeZone::availableTimeZoneIds().

Source

pub unsafe fn available_time_zone_ids_country( country: Country, ) -> CppBox<QListOfQByteArray>

Calls C++ function: static QList<QByteArray> QTimeZone::availableTimeZoneIds(QLocale::Country country).

Source

pub unsafe fn available_time_zone_ids_int( offset_seconds: c_int, ) -> CppBox<QListOfQByteArray>

Calls C++ function: static QList<QByteArray> QTimeZone::availableTimeZoneIds(int offsetSeconds).

Source

pub unsafe fn comment(&self) -> CppBox<QString>

Calls C++ function: QString QTimeZone::comment() const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTimeZone>>, ) -> Ref<QTimeZone>

Calls C++ function: QTimeZone& QTimeZone::operator=(const QTimeZone& other).

Source

pub unsafe fn country(&self) -> Country

Calls C++ function: QLocale::Country QTimeZone::country() const.

Source

pub unsafe fn daylight_time_offset( &self, at_date_time: impl CastInto<Ref<QDateTime>>, ) -> c_int

Calls C++ function: int QTimeZone::daylightTimeOffset(const QDateTime& atDateTime) const.

Source

pub unsafe fn display_name_q_date_time_name_type_q_locale( &self, at_date_time: impl CastInto<Ref<QDateTime>>, name_type: NameType, locale: impl CastInto<Ref<QLocale>>, ) -> CppBox<QString>

Calls C++ function: QString QTimeZone::displayName(const QDateTime& atDateTime, QTimeZone::NameType nameType = …, const QLocale& locale = …) const.

Source

pub unsafe fn display_name_time_type_name_type_q_locale( &self, time_type: TimeType, name_type: NameType, locale: impl CastInto<Ref<QLocale>>, ) -> CppBox<QString>

Calls C++ function: QString QTimeZone::displayName(QTimeZone::TimeType timeType, QTimeZone::NameType nameType = …, const QLocale& locale = …) const.

Source

pub unsafe fn display_name_q_date_time_name_type( &self, at_date_time: impl CastInto<Ref<QDateTime>>, name_type: NameType, ) -> CppBox<QString>

Calls C++ function: QString QTimeZone::displayName(const QDateTime& atDateTime, QTimeZone::NameType nameType = …) const.

Source

pub unsafe fn display_name_q_date_time( &self, at_date_time: impl CastInto<Ref<QDateTime>>, ) -> CppBox<QString>

Calls C++ function: QString QTimeZone::displayName(const QDateTime& atDateTime) const.

Source

pub unsafe fn display_name_time_type_name_type( &self, time_type: TimeType, name_type: NameType, ) -> CppBox<QString>

Calls C++ function: QString QTimeZone::displayName(QTimeZone::TimeType timeType, QTimeZone::NameType nameType = …) const.

Source

pub unsafe fn display_name_time_type( &self, time_type: TimeType, ) -> CppBox<QString>

Calls C++ function: QString QTimeZone::displayName(QTimeZone::TimeType timeType) const.

Source

pub unsafe fn has_daylight_time(&self) -> bool

Calls C++ function: bool QTimeZone::hasDaylightTime() const.

Source

pub unsafe fn has_transitions(&self) -> bool

Calls C++ function: bool QTimeZone::hasTransitions() const.

Source

pub unsafe fn iana_id_to_windows_id( iana_id: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QByteArray>

Calls C++ function: static QByteArray QTimeZone::ianaIdToWindowsId(const QByteArray& ianaId).

Source

pub unsafe fn id(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QTimeZone::id() const.

Source

pub unsafe fn is_daylight_time( &self, at_date_time: impl CastInto<Ref<QDateTime>>, ) -> bool

Calls C++ function: bool QTimeZone::isDaylightTime(const QDateTime& atDateTime) const.

Source

pub unsafe fn is_time_zone_id_available( iana_id: impl CastInto<Ref<QByteArray>>, ) -> bool

Calls C++ function: static bool QTimeZone::isTimeZoneIdAvailable(const QByteArray& ianaId).

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QTimeZone::isValid() const.

Source

pub unsafe fn new() -> CppBox<QTimeZone>

Calls C++ function: [constructor] void QTimeZone::QTimeZone().

Source

pub unsafe fn from_q_byte_array( iana_id: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QTimeZone>

Calls C++ function: [constructor] void QTimeZone::QTimeZone(const QByteArray& ianaId).

Source

pub unsafe fn from_int(offset_seconds: c_int) -> CppBox<QTimeZone>

Calls C++ function: [constructor] void QTimeZone::QTimeZone(int offsetSeconds).

Source

pub unsafe fn from_q_byte_array_int2_q_string_country_q_string( zone_id: impl CastInto<Ref<QByteArray>>, offset_seconds: c_int, name: impl CastInto<Ref<QString>>, abbreviation: impl CastInto<Ref<QString>>, country: Country, comment: impl CastInto<Ref<QString>>, ) -> CppBox<QTimeZone>

Calls C++ function: [constructor] void QTimeZone::QTimeZone(const QByteArray& zoneId, int offsetSeconds, const QString& name, const QString& abbreviation, QLocale::Country country = …, const QString& comment = …).

Source

pub unsafe fn from_q_byte_array_int2_q_string_country( zone_id: impl CastInto<Ref<QByteArray>>, offset_seconds: c_int, name: impl CastInto<Ref<QString>>, abbreviation: impl CastInto<Ref<QString>>, country: Country, ) -> CppBox<QTimeZone>

Calls C++ function: [constructor] void QTimeZone::QTimeZone(const QByteArray& zoneId, int offsetSeconds, const QString& name, const QString& abbreviation, QLocale::Country country = …).

Source

pub unsafe fn from_q_byte_array_int2_q_string( zone_id: impl CastInto<Ref<QByteArray>>, offset_seconds: c_int, name: impl CastInto<Ref<QString>>, abbreviation: impl CastInto<Ref<QString>>, ) -> CppBox<QTimeZone>

Calls C++ function: [constructor] void QTimeZone::QTimeZone(const QByteArray& zoneId, int offsetSeconds, const QString& name, const QString& abbreviation).

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QTimeZone>>, ) -> CppBox<QTimeZone>

Calls C++ function: [constructor] void QTimeZone::QTimeZone(const QTimeZone& other).

Source

pub unsafe fn next_transition( &self, after_date_time: impl CastInto<Ref<QDateTime>>, ) -> CppBox<OffsetData>

Calls C++ function: QTimeZone::OffsetData QTimeZone::nextTransition(const QDateTime& afterDateTime) const.

Source

pub unsafe fn offset_data( &self, for_date_time: impl CastInto<Ref<QDateTime>>, ) -> CppBox<OffsetData>

Calls C++ function: QTimeZone::OffsetData QTimeZone::offsetData(const QDateTime& forDateTime) const.

Source

pub unsafe fn offset_from_utc( &self, at_date_time: impl CastInto<Ref<QDateTime>>, ) -> c_int

Calls C++ function: int QTimeZone::offsetFromUtc(const QDateTime& atDateTime) const.

Source

pub unsafe fn previous_transition( &self, before_date_time: impl CastInto<Ref<QDateTime>>, ) -> CppBox<OffsetData>

Calls C++ function: QTimeZone::OffsetData QTimeZone::previousTransition(const QDateTime& beforeDateTime) const.

Source

pub unsafe fn standard_time_offset( &self, at_date_time: impl CastInto<Ref<QDateTime>>, ) -> c_int

Calls C++ function: int QTimeZone::standardTimeOffset(const QDateTime& atDateTime) const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QTimeZone>>)

Calls C++ function: void QTimeZone::swap(QTimeZone& other).

Source

pub unsafe fn system_time_zone() -> CppBox<QTimeZone>

Calls C++ function: static QTimeZone QTimeZone::systemTimeZone().

Source

pub unsafe fn system_time_zone_id() -> CppBox<QByteArray>

Calls C++ function: static QByteArray QTimeZone::systemTimeZoneId().

Source

pub unsafe fn transitions( &self, from_date_time: impl CastInto<Ref<QDateTime>>, to_date_time: impl CastInto<Ref<QDateTime>>, ) -> CppBox<QVectorOfOffsetData>

Calls C++ function: QVector<QTimeZone::OffsetData> QTimeZone::transitions(const QDateTime& fromDateTime, const QDateTime& toDateTime) const.

Source

pub unsafe fn utc() -> CppBox<QTimeZone>

Calls C++ function: static QTimeZone QTimeZone::utc().

Source

pub unsafe fn windows_id_to_default_iana_id_1a( windows_id: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QByteArray>

Calls C++ function: static QByteArray QTimeZone::windowsIdToDefaultIanaId(const QByteArray& windowsId).

Source

pub unsafe fn windows_id_to_default_iana_id_2a( windows_id: impl CastInto<Ref<QByteArray>>, country: Country, ) -> CppBox<QByteArray>

Calls C++ function: static QByteArray QTimeZone::windowsIdToDefaultIanaId(const QByteArray& windowsId, QLocale::Country country).

Source

pub unsafe fn windows_id_to_iana_ids_1a( windows_id: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QListOfQByteArray>

Calls C++ function: static QList<QByteArray> QTimeZone::windowsIdToIanaIds(const QByteArray& windowsId).

Source

pub unsafe fn windows_id_to_iana_ids_2a( windows_id: impl CastInto<Ref<QByteArray>>, country: Country, ) -> CppBox<QListOfQByteArray>

Calls C++ function: static QList<QByteArray> QTimeZone::windowsIdToIanaIds(const QByteArray& windowsId, QLocale::Country country).

Trait Implementations§

Source§

impl CppDeletable for QTimeZone

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QTimeZone::~QTimeZone().

Source§

impl PartialEq<Ref<QTimeZone>> for QTimeZone

Source§

fn eq(&self, other: &Ref<QTimeZone>) -> bool

Calls C++ function: bool QTimeZone::operator==(const QTimeZone& other) const.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.