Sublime Forum

Trying to add time date stamp and configure key stroke for it

#1

Hello,
Is there anyone out there who can give me the exact line by line instructions to add a time/date stamp in sublime text?
Thank you,
Mark

0 Likes

#2

check the readme of
https://packagecontrol.io/packages/InsertDate

0 Likes

#3

So far as I can tell, this package does not support day of the week (Monday, Tuesday, etc.). Is there a way to get a timestamp with day of the week? Something like this:

2022-09-14 10:47 Wednesday

0 Likes

#4

As outlined in the README, the package supports all of the datetime.strftime() formats; that includes the day of the week in both a short and long format.

The format string that you want for your example is %Y-%m-%d %H:%M %A (or %I instead of %H if you want the time to be a 12 hour clock and not a 24 hour clock, but I assume that’s not what you want since you have no AM/PM designation in your example).

1 Like