Date/time as new Parameters for Button bar, user cmd

Only forum where polls are allowed. You may announce a new poll in the matching support forum.

Moderators: Hacker, Stefan2, white

Post Reply

Date/time as new Parameter

No need
0
No votes
Yes, %K YYYYMMDDHH24MISS
5
33%
Yes, %K with more options (day, week etc)
5
33%
Yes, %K with offset
5
33%
 
Total votes: 15

hi5
Senior Member
Senior Member
Posts: 307
Joined: 2012-11-03, 11:35 UTC
Contact:

Date/time as new Parameters for Button bar, user cmd

Post by *hi5 »

This has been mentioned in several posts, but I thought I'd make it a poll to gain some feedback and hopefully draw some attention.

I'd like to have the option to pass on date and time based parameters in button bars and user commands.

If we could only have one option, I suggest a Parameter which will produce a date/time in the following format

%K ("Kurrent time?") YYYYMMDDHH24MISS
(K just a suggestion can be other free letter, but seems as good as any)

substring fields will give the user the ability to abstract parts they need such as the YEAR:

%K:~1,4 -> 2021

Wish 1

%K followed by letter (or a number) which could be:
a Abbreviated weekday name (Mon)
A Full weekday name (Monday)
b Abbreviated month name (Mar)
B Full month name (March)
d Day of month as decimal number (01-31)
H Hour in 24-hour format (00-23)
I Hour in 12-hour format (01-12)
j Day of year as decimal number (001-366)
m Month as decimal number (01-12)
M Minute as decimal number (00-59)
p Current locale’s A.M./P.M. indicator for 12-hour clock
S Second as decimal number (00-59)
U Week of year as decimal number, with Sunday as first day of week (00-53)
w Weekday as decimal number (0-6; Sunday is 0)
W Week of year as decimal number, with Monday as first day of week (00-53)
y Year without century, as decimal number (00-99)
Y Year with century, as decimal number
z Time-zone name or abbreviation; no characters if time zone is unknown
Wish 2

Adding an Offset option, so if you want yesterdays date: 1d. 10 minutes ago: 10M

%K1d If %K 20211204215512 -> 20211203215512 one day (d, see above)
%K3m If %K 20211204215512 -> 20210904215512 three months (m, see above)
%Ka1d Fri (today is Sat, one day (d, see above))
etc
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread. TCSyncComments (copy file comments) - Vote: Date/Time poll
Post Reply