Time in MULTI-RENAME tool shows a 12 hour difference

English support forum

Moderators: white, Hacker, petermad, Stefan2

sfdude
Junior Member
Junior Member
Posts: 21
Joined: 2009-09-11, 16:54 UTC

Time in MULTI-RENAME tool shows a 12 hour difference

Post by *sfdude »

Hi all,

Problem:
When using the MULTI-RENAME tool on a file ("aa.txt"),
using the mask:

[N]_[hm]

will always show my local time, plus 12 hours.

Example:
right now, my PC shows my correct Local Time.
It's 1:45 in the morning here!.

Yet, the MULTI-RENAME tool
applied to file: "aa.txt",
will show this:

aa_1345.txt (1:45 PM = wrong! ahead by 12 hours!)

instead of the correct:

aa_0145.txt (correct - since it's 1:45 AM here...)

Help! How do I correct this?
SFdude
TC 7.55
XP Pro SP3
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Works fine for me. BTW, I have 24-hour time format set in my Windows.
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Works fine here too:
1.45am is inserted as 0145
1.45pm is inserted as 1345

This is tested with "Configuration" -> "Options..." -> "Tabstops" -> "Use 12 hour AM/PM format"

Testet both with Danish (24 hour) and English (USA) 12 hour setting of my Windows.

NOTICE: it is the time of the file's time attribute that is inserted - not the current time on your computer!
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
AnthonyCian
Senior Member
Senior Member
Posts: 265
Joined: 2005-06-16, 01:45 UTC
Location: Thatcher Az. USA

Post by *AnthonyCian »

NOTICE: it is the time of the file's time attribute that is inserted - not the current time on your computer!

May I ask how does one insert the current time?

anthony
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

AnthonyCian wrote:May I ask how does one insert the current time?
Using some WDX plugin that can return current time...
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

AnthonyCian wrote:May I ask how does one insert the current time?
see
http://www.ghisler.ch/board/viewtopic.php?t=18763
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, cannot reproduce either. As described in the help:
[h] Paste hours, always in 24 hour 2 digit format

so the setting of 12/24 hour display doesn't matter.
Author of Total Commander
https://www.ghisler.com
sfdude
Junior Member
Junior Member
Posts: 21
Joined: 2009-09-11, 16:54 UTC

Post by *sfdude »

Ah!
OK - the key to the solution
was given by petermad (tak Peter!).

He pointed out correctly that:
"it is the time of the file's time attribute that is inserted by the MRT",
(not the PC local time, as I assumed wrongly!)

Although it would be nice to be able to easily
TIME & DATE stamp any file/s in TC...any ideas for doing that?

Thanks ALL!
SFdude
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ah, thanks for the clarification! The current time could be pasted with a content plugin, maybe someone knows one already? Otherwise I will add it to my sample plugin, it wouldn't be very hard.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I wrote such a plugins a few years ago.
www.lefteous.de/tc/archives/date/wdx_date_1.00.zip
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

2Lefteous

Your plugin offer Modified, Created and Accessed but not the requested one "Current" :wink:
sfdude
Junior Member
Junior Member
Posts: 21
Joined: 2009-09-11, 16:54 UTC

Post by *sfdude »

ok!
so, can the CURRENT (local PC) TIME and/or DATE
be added to the MRT as:
- a plugin or even
- as a native MRT feature?

That would be great!

Ghisler? Lefteous? Anybody?

SFdude
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

sfdude wrote:ok!
so, can the CURRENT (local PC) TIME and/or DATE
be added to the MRT as:
- a plugin or even
- as a native MRT feature?

That would be great!

Ghisler? Lefteous? Anybody?

SFdude
?
You may have missed my response above?


And, just to be sure:
of course you can insert current date and time just as plain text by hand.
Or paste this from the clipboard, where a third party tool (like an AHK script) has copied it right before.
Not nifty, but it works.

But such standards should be provided within the tc-plugin?! Ghisler? :D
sfdude
Junior Member
Junior Member
Posts: 21
Joined: 2009-09-11, 16:54 UTC

Post by *sfdude »

Hi Stefan,

Yes, I did follow the separate thread
which you pointed out in your previous post,
(and Danke Stefan!)

But that thread is somewhat hard to follow, (well, to me at least!).

The 2 gentlemen in that thread are discussing why their solution doesn't work...in small fragments and snippets of code. Hard to understand...

Would somebody care to summarize the solution,
(if it really works),
in easy steps - so that it can be easily implemented in MRT?
Or maybe a Plug-in?

Thanks,
SFdude
(losing his hair...) :)
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

sfdude wrote:Would somebody care to summarize the solution
See: >>> http://www.ghisler.ch/board/viewtopic.php?p=206065#206065

HTH? :D
Post Reply