Wrong time (1 sec diff) displayed in TC 6.53
Moderators: Hacker, petermad, Stefan2, white
Wrong time (1 sec diff) displayed in TC 6.53
Image: http://danny.swalas.org/wrong_time_in_totalcmd.gif
In the above image, Total Commander (6.53, WinXp) displays the date as 16:26:10, but the real date is 16:26:11 (I did a touch to change the time so I know that 11 is the correct number for the seconds).
Why? Is this some kind of rounding error, i.e. invisible milliseconds that are interpreted differently by the properties dialog and TC (one rounding up, one down)?
Sorry if this has been asked before, I did some searching but found no answer.
In the above image, Total Commander (6.53, WinXp) displays the date as 16:26:10, but the real date is 16:26:11 (I did a touch to change the time so I know that 11 is the correct number for the seconds).
Why? Is this some kind of rounding error, i.e. invisible milliseconds that are interpreted differently by the properties dialog and TC (one rounding up, one down)?
Sorry if this has been asked before, I did some searching but found no answer.
Two by two---
2ecto
Hello !
¤ Except I mistake, I think that TC uses(used?) the DOS system for the time which works by 2-second steps…
- Hence, an odd amount of seconds (11) couln't be displayed in the case, just even values “10” or “12”…
Kind regards,
Claude
Clo

¤ Except I mistake, I think that TC uses(used?) the DOS system for the time which works by 2-second steps…
- Hence, an odd amount of seconds (11) couln't be displayed in the case, just even values “10” or “12”…

Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Oh, now that I look a little more closely it seems you are right - I can't see a single file with odd-numbered seconds 
Seriously though.. this seems a bit tacky. Such a great program as TC, not being able to display odd-numbered seconds? Or is the problem derived from some old file system limitation? Shouldn't be too hard to make a workaround if that's the case, right?
Seems like a silly problem, but it bothers me as I regularly compare (by quick eye-balling) lots of files by their exact date/time

Seriously though.. this seems a bit tacky. Such a great program as TC, not being able to display odd-numbered seconds? Or is the problem derived from some old file system limitation? Shouldn't be too hard to make a workaround if that's the case, right?
Seems like a silly problem, but it bothers me as I regularly compare (by quick eye-balling) lots of files by their exact date/time

Clo is right.
TC sticks to some outdated routine to determine and display filetimes in order to be compatible with old Windows versions that had the 2-seconds-restriction.
TC could do better on NT-based systems, yet Christian Ghisler decided not to implement two different routines for NT-based systems and "prehistoric" systems.
I know this has been discussed in this forum before. I am just too lazy now to use the Search button and look up the old thread.
Karl
TC sticks to some outdated routine to determine and display filetimes in order to be compatible with old Windows versions that had the 2-seconds-restriction.
TC could do better on NT-based systems, yet Christian Ghisler decided not to implement two different routines for NT-based systems and "prehistoric" systems.

I know this has been discussed in this forum before. I am just too lazy now to use the Search button and look up the old thread.
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
- majkinetor
- Senior Member
- Posts: 369
- Joined: 2005-11-20, 10:36 UTC
- Location: Belgrade, Serbia
- Contact:
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
Thanks everybody for the info.
From the ShellDetails thread:
I searched but couldn't find any more info - like exactly why ghisler decided to do it this way and if it's planned to change in the future. If anyone could point me to information about all this, I'd be greatful!
From the ShellDetails thread:
So, this "error" is by design (ie. ghisler decided to do it this way, like karlchen pointed out). My obvious question is; why? If it can be done correctly, why not do it? Too hard, other stuff much more prioritized in the todo-list, or..?ghisler(Author) wrote: TC uses the date/time format used by the FAT(32) file system, which is accurate to 2 seconds only. Apparently the seconds are rounded up in one case, and down in the other...
I searched but couldn't find any more info - like exactly why ghisler decided to do it this way and if it's planned to change in the future. If anyone could point me to information about all this, I'd be greatful!

AFAIK, the limitation is in the file system, not TC itself; it only reads the timestamp via the OS. See here: http://www.jpsoft.com/help/index.htm?timestamps.htm
2ecto

Well - floppy disks, CD-ROM's and memorycards usually use FAT - and I personally use both FAT and NTFS on my harddisks - but of course I am not most usersI guess most users haven't.

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
2ecto
I agree - NTFS timestamp should be used when available.
I agree - NTFS timestamp should be used when available.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Sorry, but CD-Rom does not use FAT at all but ISO 9696 or newer the UDF-filesystem. That's the main reason you could not access a CD-Rom on DOS or Win95 Machines withouit a proper driver.petermad wrote:CD-ROM's... usually use FAT -
On the other hand I agree that FAT is still in use at many machines e.g all machines that still run Win95/98 mandatory use the FAT format. And for external harddiscs it is mostly a good idea, too, to use FAT because FAT is supported by many different Operating systems - so you can access Data on FAT partitions from MAC-OS, Windows or Unix.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
2Sheepdog
Sorry you are right of course - I even tested a little - it seems that ISO supports uneven seconds in the timestamp, as do UDF.CD-Rom does not use FAT
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar