Created
August 23, 2018 18:08
-
-
Save jrsa/4dbb7787fcfe5a6def6b4a85ca2d24d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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