qdatetime.sip 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. // qdatetime.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtCore Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. class QDate /TypeHintIn="Union[QDate, datetime.date]"/
  22. {
  23. %TypeHeaderCode
  24. #include <qdatetime.h>
  25. %End
  26. %TypeCode
  27. #include <QHash>
  28. %End
  29. %ConvertToTypeCode
  30. // Allow a Python date object whenever a QDate is expected.
  31. if (sipIsErr == NULL)
  32. return (sipGetDate(sipPy, 0) ||
  33. sipCanConvertToType(sipPy, sipType_QDate, SIP_NO_CONVERTORS));
  34. sipDateDef py_date;
  35. if (sipGetDate(sipPy, &py_date))
  36. {
  37. *sipCppPtr = new QDate(py_date.pd_year,
  38. py_date.pd_month,
  39. py_date.pd_day);
  40. return sipGetState(sipTransferObj);
  41. }
  42. *sipCppPtr = reinterpret_cast<QDate *>(sipConvertToType(sipPy, sipType_QDate, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));
  43. return 0;
  44. %End
  45. %PickleCode
  46. sipRes = Py_BuildValue("iii", sipCpp->year(), sipCpp->month(), sipCpp->day());
  47. %End
  48. public:
  49. QDate();
  50. QDate(int y, int m, int d);
  51. QDate(int y, int m, int d, QCalendar cal);
  52. SIP_PYOBJECT __repr__() const /TypeHint="str"/;
  53. %MethodCode
  54. if (sipCpp->isNull())
  55. {
  56. sipRes = PyUnicode_FromString("PyQt6.QtCore.QDate()");
  57. }
  58. else
  59. {
  60. sipRes = PyUnicode_FromFormat(
  61. "PyQt6.QtCore.QDate(%i, %i, %i)", sipCpp->year(),
  62. sipCpp->month(), sipCpp->day());
  63. }
  64. %End
  65. Py_hash_t __hash__() const;
  66. %MethodCode
  67. sipRes = qHash(sipCpp->toString(Qt::ISODate));
  68. %End
  69. SIP_PYOBJECT toPyDate() const /TypeHint="datetime.date"/;
  70. %MethodCode
  71. // Convert to a Python date object.
  72. sipDateDef py_date;
  73. py_date.pd_year = sipCpp->year();
  74. py_date.pd_month = sipCpp->month();
  75. py_date.pd_day = sipCpp->day();
  76. sipRes = sipFromDate(&py_date);
  77. %End
  78. bool isNull() const;
  79. int __bool__() const;
  80. %MethodCode
  81. sipRes = !sipCpp->isNull();
  82. %End
  83. bool isValid() const;
  84. int year() const;
  85. int year(QCalendar cal) const;
  86. int month() const;
  87. int month(QCalendar cal) const;
  88. int day() const;
  89. int day(QCalendar cal) const;
  90. int dayOfWeek() const;
  91. int dayOfWeek(QCalendar cal) const;
  92. int dayOfYear() const;
  93. int dayOfYear(QCalendar cal) const;
  94. int daysInMonth() const;
  95. int daysInMonth(QCalendar cal) const;
  96. int daysInYear() const;
  97. int daysInYear(QCalendar cal) const;
  98. int weekNumber(int *yearNumber = 0) const;
  99. // In Qt v6.7 this was replaced by two overloads bu twe need to retain the optional keyword argument.
  100. QString toString(const QString &format, QCalendar cal = QCalendar()) const;
  101. QString toString(Qt::DateFormat format = Qt::TextDate) const;
  102. QDate addDays(qint64 days) const;
  103. QDate addMonths(int months) const;
  104. QDate addMonths(int months, QCalendar cal) const;
  105. QDate addYears(int years) const;
  106. QDate addYears(int years, QCalendar cal) const;
  107. static QDate currentDate();
  108. static QDate fromString(const QString &string, Qt::DateFormat format = Qt::TextDate);
  109. // Qt v6.7 replaced this with two overloads but we need to retain the optional keyword argument.
  110. static QDate fromString(const QString &string, const QString &format, QCalendar cal = QCalendar());
  111. %If (Qt_6_7_0 -)
  112. // This replaces two overloads added in Qy v6.7 designed to maintain compatibility regarding optional keyword arguments.
  113. static QDate fromString(const QString &string, const QString &format, int baseYear, QCalendar cal = QCalendar());
  114. %End
  115. static bool isValid(int y, int m, int d);
  116. static bool isLeapYear(int year);
  117. static QDate fromJulianDay(qint64 jd);
  118. qint64 toJulianDay() const;
  119. bool setDate(int year, int month, int date);
  120. void getDate(int *year, int *month, int *day) const;
  121. // The arguments are marked as deprecated in Qt v6.9.
  122. QDateTime startOfDay(Qt::TimeSpec spec = Qt::LocalTime, int offsetSeconds = 0) const;
  123. QDateTime startOfDay(const QTimeZone &zone) const;
  124. // The arguments are marked as deprecated in Qt v6.9.
  125. QDateTime endOfDay(Qt::TimeSpec spec = Qt::LocalTime, int offsetSeconds = 0) const;
  126. QDateTime endOfDay(const QTimeZone &zone) const;
  127. bool setDate(int year, int month, int day, QCalendar cal);
  128. qint64 daysTo(QDate d) const;
  129. };
  130. class QTime /TypeHintIn="Union[QTime, datetime.time]"/
  131. {
  132. %TypeHeaderCode
  133. #include <qdatetime.h>
  134. %End
  135. %TypeCode
  136. #include <QHash>
  137. %End
  138. %ConvertToTypeCode
  139. // Allow a Python time object whenever a QTime is expected.
  140. if (sipIsErr == NULL)
  141. return (sipGetTime(sipPy, 0) ||
  142. sipCanConvertToType(sipPy, sipType_QTime, SIP_NO_CONVERTORS));
  143. sipTimeDef py_time;
  144. if (sipGetTime(sipPy, &py_time))
  145. {
  146. *sipCppPtr = new QTime(py_time.pt_hour,
  147. py_time.pt_minute,
  148. py_time.pt_second,
  149. py_time.pt_microsecond / 1000);
  150. return sipGetState(sipTransferObj);
  151. }
  152. *sipCppPtr = reinterpret_cast<QTime *>(sipConvertToType(sipPy, sipType_QTime, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));
  153. return 0;
  154. %End
  155. %PickleCode
  156. sipRes = Py_BuildValue("iiii", sipCpp->hour(), sipCpp->minute(), sipCpp->second(), sipCpp->msec());
  157. %End
  158. public:
  159. QTime();
  160. QTime(int h, int m, int second = 0, int msec = 0);
  161. SIP_PYOBJECT __repr__() const /TypeHint="str"/;
  162. %MethodCode
  163. if (sipCpp->isNull())
  164. {
  165. sipRes = PyUnicode_FromString("PyQt6.QtCore.QTime()");
  166. }
  167. else
  168. {
  169. sipRes = PyUnicode_FromFormat("PyQt6.QtCore.QTime(%i, %i", sipCpp->hour(),
  170. sipCpp->minute());
  171. if (sipCpp->second() || sipCpp->msec())
  172. {
  173. qpycore_Unicode_ConcatAndDel(&sipRes,
  174. PyUnicode_FromFormat(", %i", sipCpp->second()));
  175. if (sipCpp->msec())
  176. qpycore_Unicode_ConcatAndDel(&sipRes,
  177. PyUnicode_FromFormat(", %i", sipCpp->msec()));
  178. }
  179. qpycore_Unicode_ConcatAndDel(&sipRes, PyUnicode_FromString(")"));
  180. }
  181. %End
  182. Py_hash_t __hash__() const;
  183. %MethodCode
  184. sipRes = qHash(sipCpp->toString(Qt::ISODate));
  185. %End
  186. SIP_PYOBJECT toPyTime() const /TypeHint="datetime.time"/;
  187. %MethodCode
  188. // Convert to a Python time object.
  189. sipTimeDef py_time;
  190. py_time.pt_hour = sipCpp->hour();
  191. py_time.pt_minute = sipCpp->minute();
  192. py_time.pt_second = sipCpp->second();
  193. py_time.pt_microsecond = sipCpp->msec() * 1000;
  194. sipRes = sipFromTime(&py_time);
  195. %End
  196. bool isNull() const;
  197. int __bool__() const;
  198. %MethodCode
  199. sipRes = !sipCpp->isNull();
  200. %End
  201. bool isValid() const;
  202. int hour() const;
  203. int minute() const;
  204. int second() const;
  205. int msec() const;
  206. QString toString(Qt::DateFormat format = Qt::TextDate) const;
  207. QString toString(const QString &format) const;
  208. bool setHMS(int h, int m, int s, int msec = 0);
  209. QTime addSecs(int secs) const;
  210. QTime addMSecs(int ms) const;
  211. static QTime currentTime();
  212. static QTime fromString(const QString &string, Qt::DateFormat format = Qt::TextDate);
  213. static QTime fromString(const QString &s, const QString &format);
  214. static bool isValid(int h, int m, int s, int msec = 0);
  215. static QTime fromMSecsSinceStartOfDay(int msecs);
  216. int msecsSinceStartOfDay() const;
  217. int secsTo(QTime t) const;
  218. int msecsTo(QTime t) const;
  219. };
  220. class QDateTime /TypeHintIn="Union[QDateTime, datetime.datetime]"/
  221. {
  222. %TypeHeaderCode
  223. #include <qdatetime.h>
  224. %End
  225. %TypeCode
  226. #include <QHash>
  227. %End
  228. %ConvertToTypeCode
  229. // Allow a Python datetime object whenever a QDateTime is expected.
  230. if (sipIsErr == NULL)
  231. return (sipGetDateTime(sipPy, 0, 0) ||
  232. sipCanConvertToType(sipPy, sipType_QDateTime, SIP_NO_CONVERTORS));
  233. sipDateDef py_date;
  234. sipTimeDef py_time;
  235. if (sipGetDateTime(sipPy, &py_date, &py_time))
  236. {
  237. QDate qdate(py_date.pd_year,
  238. py_date.pd_month,
  239. py_date.pd_day);
  240. QTime qtime(py_time.pt_hour,
  241. py_time.pt_minute,
  242. py_time.pt_second,
  243. py_time.pt_microsecond / 1000);
  244. QDateTime *qdt = new QDateTime(qdate, qtime);
  245. *sipCppPtr = qdt;
  246. return sipGetState(sipTransferObj);
  247. }
  248. *sipCppPtr = reinterpret_cast<QDateTime *>(sipConvertToType(sipPy, sipType_QDateTime, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));
  249. return 0;
  250. %End
  251. %PickleCode
  252. QDate qd = sipCpp->date();
  253. QTime qt = sipCpp->time();
  254. sipRes = Py_BuildValue("iiiiiiii", qd.year(), qd.month(), qd.day(),
  255. qt.hour(), qt.minute(), qt.second(), qt.msec(),
  256. (int)sipCpp->timeSpec());
  257. %End
  258. public:
  259. %If (Qt_6_7_0 -)
  260. enum class TransitionResolution
  261. {
  262. Reject,
  263. RelativeToBefore,
  264. RelativeToAfter,
  265. PreferBefore,
  266. PreferAfter,
  267. PreferStandard,
  268. PreferDaylightSaving,
  269. LegacyBehavior,
  270. };
  271. %End
  272. QDateTime();
  273. QDateTime(const QDateTime &other);
  274. QDateTime(int year, int month, int day, int hour, int minute, int second = 0, int msec = 0, int timeSpec = 0) /NoDerived/;
  275. %MethodCode
  276. // This ctor is mainly supplied to allow pickling.
  277. QDate qd(a0, a1, a2);
  278. QTime qt(a3, a4, a5, a6);
  279. sipCpp = new QDateTime(qd, qt, (Qt::TimeSpec)a7);
  280. %End
  281. %If (Qt_6_7_0 -)
  282. // The resolve argument is not optional so that the overload with deprecated arguments continues to work.
  283. QDateTime(QDate date, QTime time, QDateTime::TransitionResolution resolve) [(QDate date, QTime time, QDateTime::TransitionResolution resolve = QDateTime::TransitionResolution::LegacyBehavior)];
  284. %End
  285. // The optional arguments are marked as deprecated in Qt v6.9.
  286. QDateTime(QDate date, QTime time, Qt::TimeSpec spec = Qt::LocalTime, int offsetSeconds = 0);
  287. %If (Qt_6_7_0 -)
  288. QDateTime(QDate date, QTime time, const QTimeZone &timeZone, QDateTime::TransitionResolution resolve = QDateTime::TransitionResolution::LegacyBehavior);
  289. %End
  290. %If (- Qt_6_7_0)
  291. QDateTime(QDate date, QTime time, const QTimeZone &timeZone);
  292. %End
  293. ~QDateTime();
  294. SIP_PYOBJECT __repr__() const /TypeHint="str"/;
  295. %MethodCode
  296. if (sipCpp->isNull())
  297. {
  298. sipRes = PyUnicode_FromString("PyQt6.QtCore.QDateTime()");
  299. }
  300. else
  301. {
  302. QDate qd = sipCpp->date();
  303. QTime qt = sipCpp->time();
  304. sipRes = PyUnicode_FromFormat(
  305. "PyQt6.QtCore.QDateTime(%i, %i, %i, %i, %i",
  306. qd.year(), qd.month(), qd.day(), qt.hour(), qt.minute());
  307. if (qt.second() || qt.msec() || sipCpp->timeSpec() != Qt::LocalTime)
  308. {
  309. qpycore_Unicode_ConcatAndDel(&sipRes,
  310. PyUnicode_FromFormat(", %i", qt.second()));
  311. if (qt.msec() || sipCpp->timeSpec() != Qt::LocalTime)
  312. {
  313. qpycore_Unicode_ConcatAndDel(&sipRes,
  314. PyUnicode_FromFormat(", %i", qt.msec()));
  315. if (sipCpp->timeSpec() != Qt::LocalTime)
  316. qpycore_Unicode_ConcatAndDel(&sipRes,
  317. PyUnicode_FromFormat(", PyQt6.QtCore.Qt.TimeSpec(%i)",
  318. (int)sipCpp->timeSpec()));
  319. }
  320. }
  321. qpycore_Unicode_ConcatAndDel(&sipRes, PyUnicode_FromString(")"));
  322. }
  323. %End
  324. Py_hash_t __hash__() const;
  325. %MethodCode
  326. sipRes = qHash(sipCpp->toString(Qt::ISODate));
  327. %End
  328. SIP_PYOBJECT toPyDateTime() const /TypeHint="datetime.datetime"/;
  329. %MethodCode
  330. // Convert to a Python datetime object.
  331. sipDateDef py_date;
  332. QDate qd = sipCpp->date();
  333. py_date.pd_year = qd.year();
  334. py_date.pd_month = qd.month();
  335. py_date.pd_day = qd.day();
  336. sipTimeDef py_time;
  337. QTime qt = sipCpp->time();
  338. py_time.pt_hour = qt.hour();
  339. py_time.pt_minute = qt.minute();
  340. py_time.pt_second = qt.second();
  341. py_time.pt_microsecond = qt.msec() * 1000;
  342. sipRes = sipFromDateTime(&py_date, &py_time);
  343. %End
  344. bool isNull() const;
  345. int __bool__() const;
  346. %MethodCode
  347. sipRes = !sipCpp->isNull();
  348. %End
  349. bool isValid() const;
  350. QDate date() const;
  351. QTime time() const;
  352. Qt::TimeSpec timeSpec() const;
  353. void setTimeSpec(Qt::TimeSpec spec);
  354. // This was replaced with two overloads in Qt v6.7 but we need the optional keyword argument.
  355. QString toString(const QString &format, QCalendar cal = QCalendar()) const;
  356. QString toString(Qt::DateFormat format = Qt::TextDate) const;
  357. QDateTime addDays(qint64 days) const;
  358. QDateTime addMonths(int months) const;
  359. QDateTime addYears(int years) const;
  360. QDateTime addSecs(qint64 secs) const;
  361. QDateTime addMSecs(qint64 msecs) const;
  362. QDateTime toTimeSpec(Qt::TimeSpec spec) const;
  363. QDateTime toLocalTime() const;
  364. QDateTime toUTC() const;
  365. qint64 daysTo(const QDateTime &) const;
  366. qint64 secsTo(const QDateTime &) const;
  367. static QDateTime currentDateTime();
  368. %If (Qt_6_5_0 -)
  369. static QDateTime currentDateTime(const QTimeZone &zone);
  370. %End
  371. static QDateTime fromString(const QString &string, Qt::DateFormat format = Qt::TextDate);
  372. // Qt v6.7 replaced this with two overloads but we need to retain the optional keyword argument.
  373. static QDateTime fromString(const QString &string, const QString &format, QCalendar cal = QCalendar());
  374. %If (Qt_6_7_0 -)
  375. // This replaces two overloads added in Qy v6.7 designed to maintain compatibility regarding optional keyword arguments.
  376. static QDateTime fromString(const QString &string, const QString &format, int baseYear, QCalendar cal = QCalendar());
  377. %End
  378. qint64 toMSecsSinceEpoch() const;
  379. void setMSecsSinceEpoch(qint64 msecs);
  380. qint64 msecsTo(const QDateTime &) const;
  381. static QDateTime currentDateTimeUtc();
  382. static qint64 currentMSecsSinceEpoch();
  383. void swap(QDateTime &other /Constrained/);
  384. int offsetFromUtc() const;
  385. QTimeZone timeZone() const;
  386. QString timeZoneAbbreviation() const;
  387. bool isDaylightTime() const;
  388. void setOffsetFromUtc(int offsetSeconds);
  389. %If (Qt_6_7_0 -)
  390. void setTimeZone(const QTimeZone &toZone, QDateTime::TransitionResolution resolve = QDateTime::TransitionResolution::LegacyBehavior);
  391. %End
  392. %If (- Qt_6_7_0)
  393. void setTimeZone(const QTimeZone &toZone);
  394. %End
  395. QDateTime toOffsetFromUtc(int offsetSeconds) const;
  396. QDateTime toTimeZone(const QTimeZone &toZone) const;
  397. // The optional arguments are marked as deprecated in Qt v6.9.
  398. static QDateTime fromMSecsSinceEpoch(qint64 msecs, Qt::TimeSpec spec = Qt::LocalTime, int offsetSeconds = 0);
  399. static QDateTime fromMSecsSinceEpoch(qint64 msecs, const QTimeZone &timeZone);
  400. qint64 toSecsSinceEpoch() const;
  401. void setSecsSinceEpoch(qint64 secs);
  402. // The optional arguments are marked as deprecated in Qt v6.9.
  403. static QDateTime fromSecsSinceEpoch(qint64 secs, Qt::TimeSpec spec = Qt::LocalTime, int offsetSeconds = 0);
  404. static QDateTime fromSecsSinceEpoch(qint64 secs, const QTimeZone &timeZone);
  405. static qint64 currentSecsSinceEpoch();
  406. enum class YearRange : qint32
  407. {
  408. First,
  409. Last,
  410. };
  411. %If (Qt_6_7_0 -)
  412. void setDate(QDate date, QDateTime::TransitionResolution resolve = QDateTime::TransitionResolution::LegacyBehavior);
  413. %End
  414. %If (- Qt_6_7_0)
  415. void setDate(QDate date);
  416. %End
  417. %If (Qt_6_7_0 -)
  418. void setTime(QTime time, QDateTime::TransitionResolution resolve = QDateTime::TransitionResolution::LegacyBehavior);
  419. %End
  420. %If (- Qt_6_7_0)
  421. void setTime(QTime time);
  422. %End
  423. %If (Qt_6_5_0 -)
  424. QTimeZone timeRepresentation() const;
  425. %End
  426. };
  427. QDataStream &operator<<(QDataStream &, QDate) /ReleaseGIL/;
  428. QDataStream &operator>>(QDataStream &, QDate & /Constrained/) /ReleaseGIL/;
  429. QDataStream &operator<<(QDataStream &, QTime) /ReleaseGIL/;
  430. QDataStream &operator>>(QDataStream &, QTime & /Constrained/) /ReleaseGIL/;
  431. QDataStream &operator<<(QDataStream &, const QDateTime &) /ReleaseGIL/;
  432. QDataStream &operator>>(QDataStream &, QDateTime & /Constrained/) /ReleaseGIL/;
  433. %If (Qt_6_7_0 -)
  434. bool operator==(const QDate &lhs, const QDate &rhs);
  435. %End
  436. %If (- Qt_6_7_0)
  437. bool operator==(QDate lhs, QDate rhs);
  438. %End
  439. %If (Qt_6_7_0 -)
  440. bool operator==(const QTime &lhs, const QTime &rhs);
  441. %End
  442. %If (- Qt_6_7_0)
  443. bool operator==(QTime lhs, QTime rhs);
  444. %End
  445. bool operator==(const QDateTime &lhs, const QDateTime &rhs);
  446. %If (Qt_6_7_0 -)
  447. bool operator!=(const QDate &lhs, const QDate &rhs);
  448. %End
  449. %If (- Qt_6_7_0)
  450. bool operator!=(QDate lhs, QDate rhs);
  451. %End
  452. %If (Qt_6_7_0 -)
  453. bool operator!=(const QTime &lhs, const QTime &rhs);
  454. %End
  455. %If (- Qt_6_7_0)
  456. bool operator!=(QTime lhs, QTime rhs);
  457. %End
  458. bool operator!=(const QDateTime &lhs, const QDateTime &rhs);
  459. %If (Qt_6_7_0 -)
  460. bool operator<(const QDate &lhs, const QDate &rhs);
  461. %End
  462. %If (- Qt_6_7_0)
  463. bool operator<(QDate lhs, QDate rhs);
  464. %End
  465. %If (Qt_6_7_0 -)
  466. bool operator<(const QTime &lhs, const QTime &rhs);
  467. %End
  468. %If (- Qt_6_7_0)
  469. bool operator<(QTime lhs, QTime rhs);
  470. %End
  471. bool operator<(const QDateTime &lhs, const QDateTime &rhs);
  472. %If (Qt_6_7_0 -)
  473. bool operator<=(const QDate &lhs, const QDate &rhs);
  474. %End
  475. %If (- Qt_6_7_0)
  476. bool operator<=(QDate lhs, QDate rhs);
  477. %End
  478. %If (Qt_6_7_0 -)
  479. bool operator<=(const QTime &lhs, const QTime &rhs);
  480. %End
  481. %If (- Qt_6_7_0)
  482. bool operator<=(QTime lhs, QTime rhs);
  483. %End
  484. bool operator<=(const QDateTime &lhs, const QDateTime &rhs);
  485. %If (Qt_6_7_0 -)
  486. bool operator>(const QDate &lhs, const QDate &rhs);
  487. %End
  488. %If (- Qt_6_7_0)
  489. bool operator>(QDate lhs, QDate rhs);
  490. %End
  491. %If (Qt_6_7_0 -)
  492. bool operator>(const QTime &lhs, const QTime &rhs);
  493. %End
  494. %If (- Qt_6_7_0)
  495. bool operator>(QTime lhs, QTime rhs);
  496. %End
  497. bool operator>(const QDateTime &lhs, const QDateTime &rhs);
  498. %If (Qt_6_7_0 -)
  499. bool operator>=(const QDate &lhs, const QDate &rhs);
  500. %End
  501. %If (- Qt_6_7_0)
  502. bool operator>=(QDate lhs, QDate rhs);
  503. %End
  504. %If (Qt_6_7_0 -)
  505. bool operator>=(const QTime &lhs, const QTime &rhs);
  506. %End
  507. %If (- Qt_6_7_0)
  508. bool operator>=(QTime lhs, QTime rhs);
  509. %End
  510. bool operator>=(const QDateTime &lhs, const QDateTime &rhs);