Obsolete Members for QDate
QDate 클래스의 다음 멤버는 더 이상 사용되지 않습니다. 이들은 이전 소스 코드의 작동을 유지하기 위해 제공됩니다. 새 코드에서는 사용하지 않는 것이 좋습니다.
공용 함수
(deprecated in 6.9) QDateTime | endOfDay(Qt::TimeSpec spec, int offsetSeconds = 0) const |
(deprecated in 6.9) QDateTime | startOfDay(Qt::TimeSpec spec, int offsetSeconds = 0) const |
멤버 함수 문서
[deprecated in 6.9]
QDateTime QDate::endOfDay(Qt::TimeSpec spec, int offsetSeconds = 0) const
이 함수는 6.9부터 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
이 함수는 과부하가 걸린 함수입니다.
사용 endOfDay(const QTimeZone &) instead. Returns the end-moment of the day. When a day ends depends on a how time is described: each day starts and ends earlier for those with higher offsets from UTC and later for those with lower offsets from UTC. The time representation to use can be specified either by a \a spec and \a offsetSeconds (ignored unless \a spec is Qt::OffsetSeconds) or by a time zone. Usually, the end of the day is one millisecond before the midnight, 24:00: however, if a local time transition causes the given date to skip over that moment (e.g. a DST spring-forward skipping over 23:00 and the following hour), the actual latest time in the day is returned. When \a spec is Qt::OffsetFromUTC, \a offsetSeconds gives the implied zone's offset from UTC. As UTC and such zones have no transitions, the end of the day is QTime(23, 59, 59, 999) in these cases. In the rare case of a date that was entirely skipped (this happens when a zone east of the international date-line switches to being west of it), the return shall be invalid. Passing Qt::TimeZone as \a spec (instead of passing a QTimeZone) will also produce an invalid result, as shall dates that end outside the range representable by QDateTime.
[deprecated in 6.9]
QDateTime QDate::startOfDay(Qt::TimeSpec spec, int offsetSeconds = 0) const
이 함수는 6.9부터 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
이 함수는 과부하가 걸린 함수입니다.
대신 startOfDay(const QTimeZone &)
을 사용하세요.
하루의 시작 순간을 반환합니다.
하루가 시작되는 시점은 시간을 설명하는 방식에 따라 달라집니다. UTC에서 오프셋이 큰 경우에는 하루가 더 일찍 시작되고 UTC에서 오프셋이 작은 경우에는 하루가 더 늦게 끝납니다. 사용할 시간 표현은 spec 및 offsetSeconds ( spec 가 Qt::OffsetSeconds가 아닌 경우 무시됨) 또는 시간대로 지정할 수 있습니다.
일반적으로 하루의 시작은 자정인 00:00이지만, 현지 시간 전환으로 인해 지정된 날짜가 자정을 건너뛰는 경우(예: 하루의 첫 시간을 건너뛰는 DST 스프링 포워드) 실제 하루 중 가장 빠른 시간이 반환됩니다.
spec 가 Qt::OffsetFromUTC 인 경우 offsetSeconds 는 UTC로부터 암시된 시간대의 오프셋을 제공합니다. UTC와 이러한 시간대에는 전환이 없으므로 이러한 경우 하루의 시작은 QTime(0, 0)입니다.
드물게 날짜가 완전히 건너뛴 경우(국제 날짜선의 동쪽 지역이 서쪽 지역으로 전환되는 경우)에는 반환값이 유효하지 않습니다. Qt::TimeZone 을 spec 으로 전달( QTimeZone 을 전달하는 대신)하는 경우에도 유효하지 않은 결과가 생성되며, QDateTime 으로 표현할 수 있는 범위 밖에서 시작하는 날짜도 마찬가지입니다.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.