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

Plugin request: SystemTime (current date time Today Now)

Post by *Stefan2 » 2019-01-22, 10:01 UTC

 
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?)

 
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
Ovg
Power Member
Power Member
Posts: 614
Joined: 2014-01-06, 16:26 UTC
Location: MOW

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

Post by *Ovg » 2019-01-22, 16:19 UTC

:?: 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.5 β8 x64, Windows 7 SP1 x64

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

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

Post by *Stefan2 » 2019-01-26, 10:58 UTC

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.





 
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
tbeu
Power Member
Power Member
Posts: 1268
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

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

Post by *tbeu » 2019-01-30, 07:36 UTC

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: 1758
Joined: 2007-05-21, 12:17 UTC

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

Post by *tuska » 2019-01-30, 11:05 UTC

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

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

Post by *ghisler(Author) » 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.
Author of Total Commander
http://www.ghisler.com

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

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

Post by *tuska » 2019-01-31, 11:37 UTC

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

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

Post by *Stefan2 » 2019-01-31, 12:14 UTC

ghisler(Author) wrote:
2019-01-31, 11:01 UTC
.
Thank you very much!


The WDX content plugin "filesys" (filesys sample plugin v2.5 from 31.Jan.2019)
(see >> https://www.ghisler.com/plugins.htm#content >>> Content plugins >>> at the "Content-Plugin Guide"-box >>> "A very small sample plugin with source")
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.
new fields "Today" and "Yesterday" give back a boolean "Yes" or "No" for current DATE (NOT the date in numbers, as an string, itself)

which works fine for Search and so for "Color by filetype" 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

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


- - -

This doesn't work for MRT:

[N1-8] [=filesys.Heute] [=filesys.Gestern]
12345678 Ja Nein.ext

For MRT, to add the current date&time, we can still use
[N1-8] [T3] [YMD] - [hms]



 
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
petermad
Power Member
Power Member
Posts: 8974
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

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

Post by *petermad » 2019-01-31, 12:54 UTC

2ghisler(Author)

Updated Danish translation of filesys 2.5 can be downloaded at http://madsenworld.dk/tcmd/filesys_danish.zip
License #524 (1994)
Danish Total Commander Translator
TC 9.5b8 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | 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 » 2019-02-02, 19:12 UTC

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: 70
Joined: 2014-03-26, 18:31 UTC

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

Post by *AquaBall » 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".
An explanationary add of "filesys" in the text might be helpful!

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

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

Post by *Stefan2 » 2019-07-05, 11:38 UTC

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!



 
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