GerbilSoft / rom-properties

ROM Properties Page shell extension
GNU General Public License v2.0
494 stars 36 forks source link

Add ability to represent time with minute-precision #43

Open GerbilSoft opened 7 years ago

GerbilSoft commented 7 years ago

Issue by DankRank Tuesday Jan 17, 2017 at 22:22 GMT Originally opened as https://github.com/GerbilSoft/rom-properties.reworking/issues/43


Some timestamp formats (e.g. thrp) don't have "seconds" fields, and thus will be displayed like 12:34:00.

I propose introducing a DateTimeFlag called RFT_DATETIME_NO_SECONDS, which would specify that a timestamp does not represent seconds. Such timestamp should be displayed like 12:34.

GerbilSoft commented 7 years ago

Comment by GerbilSoft Saturday Jan 28, 2017 at 16:13 GMT


I'm currently using the locale-based time formatting functions specific to each UI toolkit. This uses the time format specified by the system locale.

On my system, Qt/KDE doesn't show the seconds field, but GTK+ and Windows do.

I'm not sure if there's an easy way to explicitly hide the seconds field without using the locale-specific format.