Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to add timestamp with time? #182

Open
norogoth opened this issue Feb 10, 2021 · 2 comments
Open

No way to add timestamp with time? #182

norogoth opened this issue Feb 10, 2021 · 2 comments

Comments

@norogoth
Copy link

Reading the docs it seems that ctrl + alt + o t will insert a "timestamp" that is really only a datestamp. Is there a way to insert an actual timestamp with the time?

@mrkeuz
Copy link

mrkeuz commented Feb 11, 2021

As solution, you can:

  • Create custom snipped for org files (is there $CURRENT_SECONDS_UNIX variable).
  • Bind it to your combination to insert snipped as described in article.

Fast googling got next article:
https://mattferderer.com/create-a-snippet-or-shortcut-in-vs-code-to-insert-the-current-date-time
https://code.visualstudio.com/docs/editor/userdefinedsnippets#_variables

@mrkeuz
Copy link

mrkeuz commented Feb 14, 2021

Also, there is a more simple solution. Just founded right now, after reviewing my extensions.

Extension Insert Date String. It has format option and ready to use out of box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants