Skip to content

Instantly share code, notes, and snippets.

@jrsa
Created August 23, 2018 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrsa/4dbb7787fcfe5a6def6b4a85ca2d24d4 to your computer and use it in GitHub Desktop.
Save jrsa/4dbb7787fcfe5a6def6b4a85ca2d24d4 to your computer and use it in GitHub Desktop.
import sublime_plugin
from time import time
class InsertEpochTimeCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.insert(edit, self.view.sel()[0].begin(), str(int(time())))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment