Support year unit in userFriendlyDuration()

This commit is contained in:
Chocobo1 2019-06-18 23:01:51 +08:00
parent 1de4c2497c
commit 516c968373
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
4 changed files with 19 additions and 15 deletions

View file

@ -84,7 +84,7 @@ namespace Utils
// Take a number of seconds and return a user-friendly
// time duration like "1d 2h 10m".
QString userFriendlyDuration(qlonglong seconds);
QString userFriendlyDuration(qlonglong seconds, qlonglong maxCap = -1);
QString getUserIDString();
#ifdef Q_OS_WIN