Time in MULTI-RENAME tool shows a 12 hour difference

English support forum

Moderators: sheep, Hacker, Stefan2, white

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 » 2010-07-07, 05:05 UTC

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: 8334
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2010-07-07, 06:33 UTC

Works fine for me. BTW, I have 24-hour time format set in my Windows.

User avatar
petermad
Power Member
Power Member
Posts: 8544
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2010-07-07, 07:02 UTC

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 9.5b1 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | 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 » 2010-07-07, 07:41 UTC

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: 8334
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2010-07-07, 10:37 UTC

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: 2625
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 » 2010-07-07, 11:24 UTC

AnthonyCian wrote:May I ask how does one insert the current time?
see
http://www.ghisler.ch/board/viewtopic.php?t=18763
Inofficial FAQs || WIKI (Deu/Eng) || TC Home (What's new? // FAQ // Download // Order // Addons // Tools // Plugins)
Erst wenn der letzte Baum gefällt oder die letzte Biene verendet ist, werden die Leute verstehen warum Umweltschutz wichtig ist.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37695
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2010-07-07, 14:23 UTC

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
http://www.ghisler.com

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

Post by *sfdude » 2010-07-07, 16:52 UTC

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: 37695
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2010-07-08, 10:17 UTC

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
http://www.ghisler.com

User avatar
Lefteous
Power Member
Power Member
Posts: 9457
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous » 2010-07-08, 11:19 UTC

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: 2076
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 » 2010-07-08, 21:34 UTC

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 » 2010-07-09, 00:29 UTC

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: 2625
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 » 2010-07-09, 06:10 UTC

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
Inofficial FAQs || WIKI (Deu/Eng) || TC Home (What's new? // FAQ // Download // Order // Addons // Tools // Plugins)
Erst wenn der letzte Baum gefällt oder die letzte Biene verendet ist, werden die Leute verstehen warum Umweltschutz wichtig ist.

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

Post by *sfdude » 2010-07-09, 06:25 UTC

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: 2625
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 » 2010-07-09, 20:03 UTC

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

HTH? :D
Inofficial FAQs || WIKI (Deu/Eng) || TC Home (What's new? // FAQ // Download // Order // Addons // Tools // Plugins)
Erst wenn der letzte Baum gefällt oder die letzte Biene verendet ist, werden die Leute verstehen warum Umweltschutz wichtig ist.

Post Reply