Plugin request: SystemTime (current date time Today Now)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
Stefan2
Power Member
Power Member
Posts: 2884
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Plugin request: SystemTime (current date time Today Now)

Post by *Stefan2 »

 
Can somebody please create a plugin to provide the current date and time of the operation system? :thumbsup:

Proposed name perhaps smtg like: SystemTime (or even SystemInfo)


Provided information:

- Current date (format from the settings of this pc) <<< THIS is most need, like for today: 22. 01. 2019 (German: dd. mm. yyyy)

- Current Time (format from the settings of this pc) <<< THIS is most need, like for right now: 11:01




Maybe also

- Current date +/- x day
- Current Time +/- x minutes
- Current:
-- YY
-- YYYY
-- MM
-- DD
-- hh
-- mm
-- ss
-- pm / am

- (maybe more info about running system: Hostname, OS, Bit, Manufacturer, region info,..)





Purpose:
use for
- search files created on Current today date: 00:00-23:59
- color file by a definition via search
- multi rename tool: add current time stamp to file name




TIA :D      (or is such not possible with TCs plugin system?)

 

User avatar
Ovg
Power Member
Power Member
Posts: 645
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Re: Plugin request: SystemTime (current date time Today Now)

Post by *Ovg »

:?: Why not WinScriptsADV?
It supports AHK, PS, VBH
And I know, you can do it! :mrgreen:
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.51 x64, Windows 7 SP1 x64

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

Re: Plugin request: SystemTime (current date time Today Now)

Post by *Stefan2 »

Ovg wrote:
2019-01-22, 16:19 UTC
Thank you, Ovg, I am thinking I really could, but I am also thinking 'we' need
something more easier, easier to handle for every user without much long guidance.





 

User avatar
tbeu
Power Member
Power Member
Posts: 1291
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: Plugin request: SystemTime (current date time Today Now)

Post by *tbeu »

Did you try the Age content plugin?
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more

User avatar
tuska
Power Member
Power Member
Posts: 1976
Joined: 2007-05-21, 12:17 UTC

Re: Plugin request: SystemTime (current date time Today Now)

Post by *tuska »

tbeu wrote:
2019-01-30, 07:36 UTC
Did you try the Age content plugin?
I tested that: https://ghisler.ch/board/viewtopic.php?p=350925#p350925 (german thread)
Unfortunately the query for "today" with this plugin works only conditionally, because 1 day is considered from the time of the query(!)

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

Re: Plugin request: SystemTime (current date time Today Now)

Post by *ghisler(Author) »

I have updated my sample content plugin "filesys" to support the fields "Today" and "Yesterday". You can find it here:
http://ghisler.fileburst.com/content/wdx_filesys.zip

The fields check for the current date only (in local time), and ignore the current time.
Author of Total Commander
http://www.ghisler.com

User avatar
tuska
Power Member
Power Member
Posts: 1976
Joined: 2007-05-21, 12:17 UTC

Re: Plugin request: SystemTime (current date time Today Now)

Post by *tuska »

ghisler(Author) wrote:
2019-01-31, 11:01 UTC
I have updated my sample content plugin "filesys" to support the fields "Today" and "Yesterday". You can find it here:
http://ghisler.fileburst.com/content/wdx_filesys.zip

The fields check for the current date only (in local time), and ignore the current time.
Thank you!
Short tests resulted in successful searches.

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

Content WDX Plugin: Boolean for Today and Yesterday Heute Gestern

Post by *Stefan2 »

ghisler(Author) wrote:
2019-01-31, 11:01 UTC
I have updated my sample content plugin "filesys" to support the fields "Today" and "Yesterday". You can find it here:
http://ghisler.fileburst.com/content/wdx_filesys.zip

The fields check for the current date only (in local time), and ignore the current time.

Thank you very much for that update!



WDX content plugin "filesys" (filesys sample plugin v2.5 from 31.Jan.2019)

Adds new fields "Today" and "Yesterday" give back a Boolean "Yes" or "No"
for current DATE (NOT the date in numbers as an string itself)



See >> https://www.ghisler.com/plugins.htm#content
>>> Content plugins
>>> at the "Content-Plugin Guide"-box
>>> "A very small sample plugin with source"
For your information: How-to install a plugin
Show
You can just install by double click:
- since years, newer plugins come with a "pluginst.inf" file in the archive.
- so download the wanted plugin, and in TC, go to the download folder,
- double click the downloaded archive, you are asked to install.


This works fine for Search for files created "Today" and "Yesterday",
and so for "Color by filetype" files created "Today" and "Yesterday" too.
How-to: Define colors by file type
Show
--------------------------------
- Menu: Configuration > Options > Color
- Define colors by file type...
- [Add...]
- [Define]
- In "Define selection" (the re-used "search"-window)
--- open [Plugins] page and configure
--- ---- Plugin: filesys | Property: Today | OP: = | Value: Yes
- [Save] as e.g. "search_Today"
- back in "Specify file type" click [OK]
- choose Color, [OK]
- back in "Define colors by..." click [OK] (maybe drag and drop the definition to the right order)
- back in "Configuration" click [OK]


-----
To delete such rule, select it and press [Delete]
-----

Deutsch / German:
>>> FAQs: Dateien/Ordner einfärben >>> https://ghisler.ch/board/viewtopic.php?p=287485#p287485

--------------------------------


- - -

Note: This doesn't work for MRT (Multi-rename tool):

[N1-8] [=filesys.Heute] [=filesys.Gestern]
12345678 Ja Nein.ext
But for MRT, to add the current date&time, we can still use [T3]:
[N1-8] [T3] [YMD] - [hms]
12345678 20190131 - 1314.ext (Jan 31, 2019 13:14)

In MRT press F1:
[T1] After this position, use last modification date/time from renamed file for all date/time fields (default).
Note: These are just switches! Use them with the other time placeholders, e.g. [T1][YMD] [hms]
[T2] After this position, use current date/time (when rename dialog was opened)
[T3] After this position, use current date/time (when rename options were last changed)




 

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

Re: Plugin request: SystemTime (current date time Today Now)

Post by *petermad »

2ghisler(Author)

Updated Danish translation of filesys 2.5 can be downloaded at http://madsenworld.dk/tcmd/filesys_danish.zip
License #524
Danish Total Commander Translator
TC 9.51 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.965 (x64)
TC 3.0 on Android 6.0
Get:
Extended Total Commander Menus | TC Languagebar | TC Dark Help | PHSM-Calendar

User avatar
LonerD
Senior Member
Senior Member
Posts: 303
Joined: 2010-06-19, 20:18 UTC
Location: Donetsk

Re: Plugin request: SystemTime (current date time Today Now)

Post by *LonerD »

ghisler(Author) wrote:
2019-01-31, 11:01 UTC
"Today" and "Yesterday".
Old plugin from Progman13 (Creation и LastWrite) http://progman13.totalcmd.net/downloads/wdx_Today.zip
Total Commander DreamLair - dream always, think totally, be the commander of you own life.

AquaBall
Junior Member
Junior Member
Posts: 72
Joined: 2014-03-26, 18:31 UTC

Re: Plugin request: SystemTime (current date time Today Now)

Post by *AquaBall »

Stefan2 wrote:
2019-01-31, 12:14 UTC
The WDX content plugin "filesys" (filesys sample plugin v2.5 from 31.Jan.2019 >> see >> https://www.ghisler.com/plugins.htm#content )
I almost couldn't find the plugin as it is named "Content-Plugin Guide".
An explanationary add of "filesys" in the text might be helpful!

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

Re: Plugin request: SystemTime (current date time Today Now)

Post by *Stefan2 »

AquaBall wrote:
2019-07-05, 11:01 UTC
Stefan2 wrote:
2019-01-31, 12:14 UTC
The WDX content plugin "filesys" (filesys sample plugin v2.5 from 31.Jan.2019 >> see >> https://www.ghisler.com/plugins.htm#content )
I almost couldn't find the plugin as it is named "Content-Plugin Guide".
Thanks, I edited my post to point that out.



2ghisler(author)
AquaBall wrote:An explanationary add of "filesys" in the text might be helpful!



 

Post Reply