Plugin request: SystemTime (current date time Today Now)
Moderators: white, Hacker, petermad, Stefan2
Plugin request: SystemTime (current date time Today Now)
Can somebody please create a plugin to provide the current date and time of the operation system?
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 (or is such not possible with TCs plugin system?)
Re: Plugin request: SystemTime (current date time Today Now)
Why not WinScriptsADV?
It supports AHK, PS, VBH
And I know, you can do it!
It supports AHK, PS, VBH
And I know, you can do it!
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64
Re: Plugin request: SystemTime (current date time Today Now)
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.
Re: Plugin request: SystemTime (current date time Today Now)
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
Re: Plugin request: SystemTime (current date time Today Now)
I tested that: 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(!)
- ghisler(Author)
- Site Admin
- Posts: 48118
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Plugin request: SystemTime (current date time Today Now)
I have updated my sample content plugin "filesys" to support the fields "Today" and "Yesterday". You can find it here:
https://plugins.ghisler.com/content/wdx_filesys.zip
The fields check for the current date only (in local time), and ignore the current time.
https://plugins.ghisler.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
https://www.ghisler.com
https://www.ghisler.com
Re: Plugin request: SystemTime (current date time Today Now)
Thank you!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:
https://plugins.ghisler.com/content/wdx_filesys.zip
The fields check for the current date only (in local time), and ignore the current time.
Short tests resulted in successful searches.
Content WDX Plugin: Boolean for Today and Yesterday Heute Gestern
ghisler(Author) wrote: ↑2019-01-31, 11:01 UTCI have updated my sample content plugin "filesys" to support the fields "Today" and "Yesterday". You can find it here:
https://plugins.ghisler.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
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.
- 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
--------------------------------
- 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 >>> viewtopic.php?p=287485#p287485
--------------------------------
- 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 >>> 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)
Re: Plugin request: SystemTime (current date time Today Now)
2ghisler(Author)
Updated Danish translation of filesys 2.5 can be downloaded at http://madsenworld.dk/tcmd/filesys_danish.zip
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 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
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
Re: Plugin request: SystemTime (current date time Today Now)
Old plugin from Progman13 (Creation и LastWrite) http://progman13.totalcmd.net/downloads/wdx_Today.zip
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
Re: Plugin request: SystemTime (current date time Today Now)
I almost couldn't find the plugin as it is named "Content-Plugin Guide".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 )
An explanationary add of "filesys" in the text might be helpful!
Re: Plugin request: SystemTime (current date time Today Now)
Thanks, I edited my post to point that out.AquaBall wrote: ↑2019-07-05, 11:01 UTCI almost couldn't find the plugin as it is named "Content-Plugin Guide".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 )
2ghisler(author)
AquaBall wrote:An explanationary add of "filesys" in the text might be helpful!