All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QDateTime Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Date and time functions

*

Java wrapper for Qt class QDateTime

*/ public class QDateTime extends QtObject implements java.lang.Comparable, java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QDateTime::YearRange

*/ public enum YearRange implements QtEnumerator { /** *

Representing QDateTime::YearRange::First

*/ First(-292275056), /** *

Representing QDateTime::YearRange::Last

*/ Last(292278994); static { QtJambi_LibraryUtilities.initialize(); } private YearRange(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull YearRange resolve(int value) { switch (value) { case -292275056: return First; case 292278994: return Last; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QDateTime::QDateTime()

*/ public QDateTime(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QDateTime instance); /** *

See QDateTime::QDateTime(QDate,QTime)

*/ public QDateTime(io.qt.core.@NonNull QDate date, io.qt.core.@NonNull QTime time){ super((QPrivateConstructor)null); initialize_native(this, date, time); } private native static void initialize_native(QDateTime instance, io.qt.core.QDate date, io.qt.core.QTime time); /** *

See QDateTime::QDateTime(QDate,QTime,QTimeZone)

*/ public QDateTime(io.qt.core.@NonNull QDate date, io.qt.core.@NonNull QTime time, io.qt.core.@NonNull QTimeZone timeZone){ super((QPrivateConstructor)null); initialize_native(this, date, time, timeZone); } private native static void initialize_native(QDateTime instance, io.qt.core.QDate date, io.qt.core.QTime time, io.qt.core.QTimeZone timeZone); /** *

See QDateTime::QDateTime(QDate,QTime,Qt::TimeSpec,int)

*/ public QDateTime(io.qt.core.@NonNull QDate date, io.qt.core.@NonNull QTime time, io.qt.core.Qt.@NonNull TimeSpec spec, int offsetSeconds){ super((QPrivateConstructor)null); initialize_native(this, date, time, spec, offsetSeconds); } private native static void initialize_native(QDateTime instance, io.qt.core.QDate date, io.qt.core.QTime time, io.qt.core.Qt.TimeSpec spec, int offsetSeconds); /** *

See QDateTime::QDateTime(QDateTime)

*/ public QDateTime(io.qt.core.@NonNull QDateTime other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QDateTime instance, io.qt.core.QDateTime other); /** *

See QDateTime::addDays(qint64)const

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime addDays(long days){ return addDays_native_qint64_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), days); } @QtUninvokable private native io.qt.core.QDateTime addDays_native_qint64_constfct(long __this__nativeId, long days); /** *

See QDateTime::addDuration(std::chrono::milliseconds)const

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime addDuration(java.time.temporal.@NonNull TemporalAmount msecs){ return addDuration_native_std_chrono_milliseconds_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), msecs); } @QtUninvokable private native io.qt.core.QDateTime addDuration_native_std_chrono_milliseconds_constfct(long __this__nativeId, java.time.temporal.TemporalAmount msecs); /** *

See QDateTime::addMSecs(qint64)const

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime addMSecs(long msecs){ return addMSecs_native_qint64_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), msecs); } @QtUninvokable private native io.qt.core.QDateTime addMSecs_native_qint64_constfct(long __this__nativeId, long msecs); /** *

See QDateTime::addMonths(int)const

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime addMonths(int months){ return addMonths_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), months); } @QtUninvokable private native io.qt.core.QDateTime addMonths_native_int_constfct(long __this__nativeId, int months); /** *

See QDateTime::addSecs(qint64)const

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime addSecs(long secs){ return addSecs_native_qint64_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), secs); } @QtUninvokable private native io.qt.core.QDateTime addSecs_native_qint64_constfct(long __this__nativeId, long secs); /** *

See QDateTime::addYears(int)const

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime addYears(int years){ return addYears_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), years); } @QtUninvokable private native io.qt.core.QDateTime addYears_native_int_constfct(long __this__nativeId, int years); /** *

See QDateTime::date()const

*/ @QtUninvokable public final io.qt.core.@NonNull QDate date(){ return date_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QDate date_native_constfct(long __this__nativeId); /** *

See QDateTime::daysTo(QDateTime)const

*/ @QtUninvokable public final long daysTo(io.qt.core.@NonNull QDateTime arg__1){ return daysTo_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native long daysTo_native_cref_QDateTime_constfct(long __this__nativeId, long arg__1); /** *

See QDateTime::isDaylightTime()const

*/ @QtUninvokable public final boolean isDaylightTime(){ return isDaylightTime_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isDaylightTime_native_constfct(long __this__nativeId); /** *

See QDateTime::isNull()const

*/ @QtUninvokable public final boolean isNull(){ return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isNull_native_constfct(long __this__nativeId); /** *

See QDateTime::isValid()const

*/ @QtUninvokable public final boolean isValid(){ return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isValid_native_constfct(long __this__nativeId); /** *

See QDateTime::msecsTo(QDateTime)const

*/ @QtUninvokable public final long msecsTo(io.qt.core.@NonNull QDateTime arg__1){ return msecsTo_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native long msecsTo_native_cref_QDateTime_constfct(long __this__nativeId, long arg__1); /** *

See QDateTime::offsetFromUtc()const

*/ @QtUninvokable public final int offsetFromUtc(){ return offsetFromUtc_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int offsetFromUtc_native_constfct(long __this__nativeId); /** *

See operator!=(QDateTime,QDateTime)

*/ @QtUninvokable private final boolean operator_not_equal(io.qt.core.@NonNull QDateTime rhs){ return operator_not_equal_native_cref_QDateTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @QtUninvokable private native boolean operator_not_equal_native_cref_QDateTime(long __this__nativeId, long rhs); /** *

See operator+(QDateTime,std::chrono::milliseconds)

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime plus(java.time.temporal.@NonNull TemporalAmount duration){ return plus_native_std_chrono_milliseconds(QtJambi_LibraryUtilities.internal.nativeId(this), duration); } @QtUninvokable private native io.qt.core.QDateTime plus_native_std_chrono_milliseconds(long __this__nativeId, java.time.temporal.TemporalAmount duration); /** *

See operator-(QDateTime,QDateTime)

*/ @QtUninvokable public final java.time.@NonNull Duration minus(io.qt.core.@NonNull QDateTime rhs){ return minus_native_cref_QDateTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @QtUninvokable private native java.time.Duration minus_native_cref_QDateTime(long __this__nativeId, long rhs); /** *

See operator-(QDateTime,std::chrono::milliseconds)

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime minus(java.time.temporal.@NonNull TemporalAmount duration){ return minus_native_std_chrono_milliseconds(QtJambi_LibraryUtilities.internal.nativeId(this), duration); } @QtUninvokable private native io.qt.core.QDateTime minus_native_std_chrono_milliseconds(long __this__nativeId, java.time.temporal.TemporalAmount duration); /** *

See operator<(QDateTime,QDateTime)

*/ @QtUninvokable private final boolean operator_less(io.qt.core.@NonNull QDateTime rhs){ return operator_less_native_cref_QDateTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @QtUninvokable private native boolean operator_less_native_cref_QDateTime(long __this__nativeId, long rhs); /** *

See operator<<(QDataStream&,QDateTime)

*/ @QtUninvokable public void writeTo(io.qt.core.@StrictNonNull QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QDateTime::operator=(QDateTime)

*/ @QtUninvokable public final void assign(io.qt.core.@NonNull QDateTime other){ assign_native_cref_QDateTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QDateTime(long __this__nativeId, long other); /** *

See operator>>(QDataStream&,QDateTime&)

*/ @QtUninvokable public void readFrom(io.qt.core.@StrictNonNull QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QDateTime::secsTo(QDateTime)const

*/ @QtUninvokable public final long secsTo(io.qt.core.@NonNull QDateTime arg__1){ return secsTo_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native long secsTo_native_cref_QDateTime_constfct(long __this__nativeId, long arg__1); /** *

See QDateTime::setDate(QDate)

*/ @QtUninvokable public final void setDate(io.qt.core.@NonNull QDate date){ setDate_native_QDate(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(date)); } @QtUninvokable private native void setDate_native_QDate(long __this__nativeId, long date); /** *

See QDateTime::setMSecsSinceEpoch(qint64)

*/ @QtUninvokable public final void setMSecsSinceEpoch(long msecs){ setMSecsSinceEpoch_native_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), msecs); } @QtUninvokable private native void setMSecsSinceEpoch_native_qint64(long __this__nativeId, long msecs); /** *

See QDateTime::setOffsetFromUtc(int)

*/ @QtUninvokable public final void setOffsetFromUtc(int offsetSeconds){ setOffsetFromUtc_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), offsetSeconds); } @QtUninvokable private native void setOffsetFromUtc_native_int(long __this__nativeId, int offsetSeconds); /** *

See QDateTime::setSecsSinceEpoch(qint64)

*/ @QtUninvokable public final void setSecsSinceEpoch(long secs){ setSecsSinceEpoch_native_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), secs); } @QtUninvokable private native void setSecsSinceEpoch_native_qint64(long __this__nativeId, long secs); /** *

See QDateTime::setTime(QTime)

*/ @QtUninvokable public final void setTime(io.qt.core.@NonNull QTime time){ setTime_native_QTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(time)); } @QtUninvokable private native void setTime_native_QTime(long __this__nativeId, long time); /** *

See QDateTime::setTimeSpec(Qt::TimeSpec)

*/ @QtUninvokable public final void setTimeSpec(io.qt.core.Qt.@NonNull TimeSpec spec){ setTimeSpec_native_Qt_TimeSpec(QtJambi_LibraryUtilities.internal.nativeId(this), spec.value()); } @QtUninvokable private native void setTimeSpec_native_Qt_TimeSpec(long __this__nativeId, int spec); /** *

See QDateTime::setTimeZone(QTimeZone)

*/ @QtUninvokable public final void setTimeZone(io.qt.core.@NonNull QTimeZone toZone){ setTimeZone_native_cref_QTimeZone(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(toZone)); } @QtUninvokable private native void setTimeZone_native_cref_QTimeZone(long __this__nativeId, long toZone); /** *

See QDateTime::swap(QDateTime&)

*/ @QtUninvokable public final void swap(io.qt.core.@StrictNonNull QDateTime other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QDateTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void swap_native_ref_QDateTime(long __this__nativeId, long other); /** *

See QDateTime::time()const

*/ @QtUninvokable public final io.qt.core.@NonNull QTime time(){ return time_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QTime time_native_constfct(long __this__nativeId); /** *

See QDateTime::timeRepresentation()const

*/ @QtUninvokable public final io.qt.core.@NonNull QTimeZone timeRepresentation(){ return timeRepresentation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QTimeZone timeRepresentation_native_constfct(long __this__nativeId); /** *

See QDateTime::timeSpec()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull TimeSpec timeSpec(){ return io.qt.core.Qt.TimeSpec.resolve(timeSpec_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int timeSpec_native_constfct(long __this__nativeId); /** *

See QDateTime::timeZone()const

*/ @QtUninvokable public final io.qt.core.@NonNull QTimeZone timeZone(){ return timeZone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QTimeZone timeZone_native_constfct(long __this__nativeId); /** *

See QDateTime::timeZoneAbbreviation()const

*/ @QtUninvokable public final java.lang.@NonNull String timeZoneAbbreviation(){ return timeZoneAbbreviation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String timeZoneAbbreviation_native_constfct(long __this__nativeId); /** *

See QDateTime::toLocalTime()const

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime toLocalTime(){ return toLocalTime_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QDateTime toLocalTime_native_constfct(long __this__nativeId); /** *

See QDateTime::toMSecsSinceEpoch()const

*/ @QtUninvokable public final long toMSecsSinceEpoch(){ return toMSecsSinceEpoch_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long toMSecsSinceEpoch_native_constfct(long __this__nativeId); /** *

See QDateTime::toOffsetFromUtc(int)const

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime toOffsetFromUtc(int offsetSeconds){ return toOffsetFromUtc_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), offsetSeconds); } @QtUninvokable private native io.qt.core.QDateTime toOffsetFromUtc_native_int_constfct(long __this__nativeId, int offsetSeconds); /** *

See QDateTime::toSecsSinceEpoch()const

*/ @QtUninvokable public final long toSecsSinceEpoch(){ return toSecsSinceEpoch_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long toSecsSinceEpoch_native_constfct(long __this__nativeId); /** *

See QDateTime::toString(QString,QCalendar)const

*/ @QtUninvokable public final java.lang.@NonNull String toString(java.lang.@NonNull String format, io.qt.core.@NonNull QCalendar cal){ return toString_native_cref_QString_QCalendar_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), format, QtJambi_LibraryUtilities.internal.checkedNativeId(cal)); } @QtUninvokable private native java.lang.String toString_native_cref_QString_QCalendar_constfct(long __this__nativeId, java.lang.String format, long cal); /** *

See QDateTime::toString(Qt::DateFormat)const

*/ @QtUninvokable public final java.lang.@NonNull String toString(io.qt.core.Qt.@NonNull DateFormat format){ return toString_native_Qt_DateFormat_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), format.value()); } @QtUninvokable private native java.lang.String toString_native_Qt_DateFormat_constfct(long __this__nativeId, int format); /** *

See QDateTime::toTimeSpec(Qt::TimeSpec)const

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime toTimeSpec(io.qt.core.Qt.@NonNull TimeSpec spec){ return toTimeSpec_native_Qt_TimeSpec_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), spec.value()); } @QtUninvokable private native io.qt.core.QDateTime toTimeSpec_native_Qt_TimeSpec_constfct(long __this__nativeId, int spec); /** *

See QDateTime::toTimeZone(QTimeZone)const

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime toTimeZone(io.qt.core.@NonNull QTimeZone toZone){ return toTimeZone_native_cref_QTimeZone_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(toZone)); } @QtUninvokable private native io.qt.core.QDateTime toTimeZone_native_cref_QTimeZone_constfct(long __this__nativeId, long toZone); /** *

See QDateTime::toUTC()const

*/ @QtUninvokable public final io.qt.core.@NonNull QDateTime toUTC(){ return toUTC_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QDateTime toUTC_native_constfct(long __this__nativeId); /** *

See QDateTime::currentDateTime()

*/ public native static io.qt.core.@NonNull QDateTime currentDateTime(); /** *

See QDateTime::currentDateTime(QTimeZone)

*/ public static io.qt.core.@NonNull QDateTime currentDateTime(io.qt.core.@NonNull QTimeZone zone){ return currentDateTime_native_cref_QTimeZone(QtJambi_LibraryUtilities.internal.checkedNativeId(zone)); } private native static io.qt.core.QDateTime currentDateTime_native_cref_QTimeZone(long zone); /** *

See QDateTime::currentDateTimeUtc()

*/ public native static io.qt.core.@NonNull QDateTime currentDateTimeUtc(); /** *

See QDateTime::currentMSecsSinceEpoch()

*/ public native static long currentMSecsSinceEpoch(); /** *

See QDateTime::currentSecsSinceEpoch()

*/ public native static long currentSecsSinceEpoch(); /** *

See QDateTime::fromMSecsSinceEpoch(qint64)

*/ public native static io.qt.core.@NonNull QDateTime fromMSecsSinceEpoch(long msecs); /** *

See QDateTime::fromMSecsSinceEpoch(qint64,QTimeZone)

*/ public static io.qt.core.@NonNull QDateTime fromMSecsSinceEpoch(long msecs, io.qt.core.@NonNull QTimeZone timeZone){ return fromMSecsSinceEpoch_native_qint64_cref_QTimeZone(msecs, QtJambi_LibraryUtilities.internal.checkedNativeId(timeZone)); } private native static io.qt.core.QDateTime fromMSecsSinceEpoch_native_qint64_cref_QTimeZone(long msecs, long timeZone); /** *

See QDateTime::fromMSecsSinceEpoch(qint64,Qt::TimeSpec,int)

*/ public static io.qt.core.@NonNull QDateTime fromMSecsSinceEpoch(long msecs, io.qt.core.Qt.@NonNull TimeSpec spec, int offsetFromUtc){ return fromMSecsSinceEpoch_native_qint64_Qt_TimeSpec_int(msecs, spec.value(), offsetFromUtc); } private native static io.qt.core.QDateTime fromMSecsSinceEpoch_native_qint64_Qt_TimeSpec_int(long msecs, int spec, int offsetFromUtc); /** *

See QDateTime::fromSecsSinceEpoch(qint64)

*/ public native static io.qt.core.@NonNull QDateTime fromSecsSinceEpoch(long secs); /** *

See QDateTime::fromSecsSinceEpoch(qint64,QTimeZone)

*/ public static io.qt.core.@NonNull QDateTime fromSecsSinceEpoch(long secs, io.qt.core.@NonNull QTimeZone timeZone){ return fromSecsSinceEpoch_native_qint64_cref_QTimeZone(secs, QtJambi_LibraryUtilities.internal.checkedNativeId(timeZone)); } private native static io.qt.core.QDateTime fromSecsSinceEpoch_native_qint64_cref_QTimeZone(long secs, long timeZone); /** *

See QDateTime::fromSecsSinceEpoch(qint64,Qt::TimeSpec,int)

*/ public static io.qt.core.@NonNull QDateTime fromSecsSinceEpoch(long secs, io.qt.core.Qt.@NonNull TimeSpec spec, int offsetFromUtc){ return fromSecsSinceEpoch_native_qint64_Qt_TimeSpec_int(secs, spec.value(), offsetFromUtc); } private native static io.qt.core.QDateTime fromSecsSinceEpoch_native_qint64_Qt_TimeSpec_int(long secs, int spec, int offsetFromUtc); /** *

See QDateTime::fromString(QString,QStringView,QCalendar)

*/ public static io.qt.core.@NonNull QDateTime fromString(java.lang.@NonNull String string, java.lang.@NonNull String format, io.qt.core.@NonNull QCalendar cal){ return fromString_native_cref_QString_QStringView_QCalendar(string, format, QtJambi_LibraryUtilities.internal.checkedNativeId(cal)); } private native static io.qt.core.QDateTime fromString_native_cref_QString_QStringView_QCalendar(java.lang.String string, java.lang.String format, long cal); /** *

See QDateTime::fromString(QStringView,Qt::DateFormat)

*/ public static io.qt.core.@NonNull QDateTime fromString(java.lang.@NonNull String string, io.qt.core.Qt.@NonNull DateFormat format){ return fromString_native_QStringView_Qt_DateFormat(string, format.value()); } private native static io.qt.core.QDateTime fromString_native_QStringView_Qt_DateFormat(java.lang.String string, int format); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QDateTime(QPrivateConstructor p) { super(p); } /** *

See operator!=(QDateTime,QDateTime)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QDateTime) { return !operator_not_equal((io.qt.core.QDateTime) other); } return false; } /** *

See operator<(QDateTime,QDateTime)

*/ /** * {@inheritDoc} */ @QtUninvokable public int compareTo(io.qt.core.@StrictNonNull QDateTime other) { if (equals(other)) return 0; else if (operator_less(other)) return -1; else return 1; } /** * Returns the objects's hash code computed by qHash(QDateTime). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QDateTime::QDateTime(QDateTime)

*/ @QtUninvokable @Override public QDateTime clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QDateTime clone_native(long __this_nativeId); /** *

Overloaded constructor for {@link #QDateTime(io.qt.core.QDate, io.qt.core.QTime, io.qt.core.Qt.TimeSpec, int)} * with offsetSeconds = 0.

*/ public QDateTime(io.qt.core.@NonNull QDate date, io.qt.core.@NonNull QTime time, io.qt.core.Qt.@NonNull TimeSpec spec) { this(date, time, spec, (int)0); } /** *

Overloaded function for {@link #toString(java.lang.String, io.qt.core.QCalendar)} * with cal = new io.qt.core.QCalendar().

*/ @QtUninvokable public final java.lang.@NonNull String toString(java.lang.@NonNull String format) { return toString(format, new io.qt.core.QCalendar()); } /** *

Overloaded function for {@link #toString(io.qt.core.Qt.DateFormat)} * with format = io.qt.core.Qt.DateFormat.TextDate.

*/ @QtUninvokable public final java.lang.@NonNull String toString() { return toString(io.qt.core.Qt.DateFormat.TextDate); } /** *

Overloaded function for {@link #fromMSecsSinceEpoch(long, io.qt.core.Qt.TimeSpec, int)} * with offsetFromUtc = 0.

*/ public static io.qt.core.@NonNull QDateTime fromMSecsSinceEpoch(long msecs, io.qt.core.Qt.@NonNull TimeSpec spec) { return fromMSecsSinceEpoch(msecs, spec, (int)0); } /** *

Overloaded function for {@link #fromSecsSinceEpoch(long, io.qt.core.Qt.TimeSpec, int)} * with offsetFromUtc = 0.

*/ public static io.qt.core.@NonNull QDateTime fromSecsSinceEpoch(long secs, io.qt.core.Qt.@NonNull TimeSpec spec) { return fromSecsSinceEpoch(secs, spec, (int)0); } /** *

Overloaded function for {@link #fromString(java.lang.String, java.lang.String, io.qt.core.QCalendar)} * with cal = new io.qt.core.QCalendar().

*/ public static io.qt.core.@NonNull QDateTime fromString(java.lang.@NonNull String string, java.lang.@NonNull String format) { return fromString(string, format, new io.qt.core.QCalendar()); } /** *

Overloaded function for {@link #fromString(java.lang.String, io.qt.core.Qt.DateFormat)} * with format = io.qt.core.Qt.DateFormat.TextDate.

*/ public static io.qt.core.@NonNull QDateTime fromString(java.lang.@NonNull String string) { return fromString(string, io.qt.core.Qt.DateFormat.TextDate); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy