Skip to content

Instantly share code, notes, and snippets.

@tamboer
Created September 25, 2020 15:28
Show Gist options
  • Save tamboer/f938fd35d9b184963a7bf4cd2fb8d735 to your computer and use it in GitHub Desktop.
Save tamboer/f938fd35d9b184963a7bf4cd2fb8d735 to your computer and use it in GitHub Desktop.
sublime.datetime.py
import sublime, sublime_plugin, time
class InsertDatetimeCommand(sublime_plugin.TextCommand):
def run(self, edit):
sel = self.view.sel();
for s in sel:
self.view.replace(edit, s, time.ctime())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment