I use a shortcut for date a lot, as I date all of my personal notes, letters, whatever....
and it keeps returning the 'year' at the end of the string, which is aggravating for me. Thu Sep 20 17:10:02 CDT 2018 is how it is being returned to my documents, and the forum also.
My preference would simply be 9/20/2018 as the time of day carries no significance at all a year from now, or even tomorrow. Such a change would probably effect the Command Line, er uh, Panel time display ....
so can I have two methods to show up?
1 for my shortcut for documents, 2 for the Panel to leave it alone as is?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason:Topic automatically closed 6 months after creation. New replies are no longer allowed.
Here is the "Rest of the Story"
you guys got me headed in the right direction, sort of.....
I was trying to use AutoKey to output the "date" only, but none of the Terminal commands will do the job because AutoKey uses Python Script
oops!
so, ole johnnie boy has ta larn python
it took a lot of reading and none of the examples that my searches returned gave me the exact answer.
but, reading what they did, and playing around with a lot of different scripts, which mostly gave errors,
I finally stumbled across what I wanted.
======================================== from time import strftime
showdate = strftime("%m/%d/%Y")
keyboard.send_keys(showdate)
========================================
That Python script in AutoKey will export the date in this format 09/21/2018
into any text document that I am typing into, be it 'xed', or 'this forum'
I am using date as the Keyword Phrase in UpperCase to be replaced with 09/21/2018
the actual spelling of the word 'date' shows up too much in normal speech to use it as the 'keyword'...
so, for what it is worth, and if anyone uses AutoKey besides me,
the script to make it output the date only, is now working for me.
Many thanks to all of the helpful gurus who guide us into the right direction...
I just read your post and the good replies to it. Here are my thoughts on this as well.
It would have helped before if you mentioned that you were using the great and powerful and extremely useful "autokey" application for this. Tip: After entering in some new autokey phrases, you may have to save autokey and restart it for them to work properly.
yes,
had I mentioned AutoKey which I am using for several shortcuts, it would have made the answers provided more succinct.
I changed the Calendar display in the Panel to 9/21/2018, Fri 10:13 AM
which just meets with my sensibilities a bit better.
and now that AutoKey is returning the "correct date" format for my kybd text stuff, I am a lot happier now.
it is these little tweaks that we do like that, that make our DEs more comfortable to us.
and at the same time, makes trying out a different DE an unpleasant thought if wanting to make it a permanent Daily Driver.
argh!, all of those hours of trying to make Cinnamon just like I want it....
right now, it so darn near perfect, that the thought of not using it hurts.
One thing is for sure though....... "Real soon now", I am going to start messing with Python...
the more I read about Python, the more encouraged I am at trying to make some sense out of it for my little home projects.
I will never, ever, be good enough to claim to be a programmer.....
the memory cells that were destroyed when the semi truck merged my and my motorcycle into the center median wall.