b82c9d08f8
The fileTime() method and co. get the specified file time but always converted it to LocalTime; in some cases, e.g. when sorting dir entries by last modification time in QDir, or when comparing a timestamp of a file against its last modification time, basically all that's needed is the last modification time returned by the underlying stat call (in QFileSystemEngine), which is msecs since the Epoch. API docs changes coauthored with Kai Köhne. QDir benchmark results follow in the next commit. [ChangeLog][QtCore][QFileInfo] Overload file time related methods to take QTimeZone argument; mainly useful if all you need is UTC time, e.g. to compare file timestamps, this is inherently faster as no conversions need to be performed. Change-Id: If73a54e935fe272e34acbf083973c30b61510be8 Reviewed-by: Kai Köhne <kai.koehne@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> |
||
---|---|---|
.github/workflows | ||
bin | ||
cmake | ||
coin | ||
config.tests | ||
dist | ||
doc | ||
examples | ||
lib | ||
libexec | ||
LICENSES | ||
mkspecs | ||
qmake | ||
src | ||
tests | ||
util | ||
.cmake.conf | ||
.gitattributes | ||
.gitignore | ||
.lgtm.yml | ||
.tag | ||
CMakeLists.txt | ||
conanfile.py | ||
config_help.txt | ||
configure | ||
configure.bat | ||
configure.cmake | ||
dependencies.yaml | ||
qt_cmdline.cmake | ||
sync.profile |