Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
6.5
-
None
-
-
5
Description
At present, QFileInfo's time-stamp functions – birthTime(), metadataChangeTime(), lastModified(), lastRead() and the fileTime() that unifies them – all coerce the result to local time. The underlying file engine may have produced them in local time or UTC time. The client code may prefer them in UTC time; for example, QDirIterator, when sorting by lastModified(), converts to UTC. Conversions between UTC and local time are not free, so the potential conversion from UTC via local time and back is wasteful. It would, in any case, be a kindness to users of these APIs to let them select the way the time is described in the call to them, quite apart from potentially saving some needless conversions.
Attachments
Issue Links
- depends on
-
QTBUG-108199 Rework QTimeZone to make QTimeSystem redundant
- Closed
- relates to
-
QTBUG-100349 QFileInfo::fileTime() is slow
- Closed