Skip to content

Instantly share code, notes, and snippets.

@rcaldwel
Created July 10, 2012 17:13
Show Gist options
  • Save rcaldwel/3084808 to your computer and use it in GitHub Desktop.
Save rcaldwel/3084808 to your computer and use it in GitHub Desktop.
sublime: insert time
class InsertTimeCommand(sublime_plugin.TextCommand):
def run(self, edit):
from time import asctime
self.view.insert(edit, self.view.sel()[0].a, asctime())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment