Advertisement
Virajsinh

Insert Data And Time Plugin in Sublime 3

Jun 30th, 2021 (edited)
1,604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. import sublime, sublime_plugin, time
  2.  
  3. class InsertDatetimeCommand(sublime_plugin.TextCommand):
  4.     def run(self, edit):
  5.         sel = self.view.sel();
  6.         for s in sel:
  7.             self.view.replace(edit, s, time.strftime( '%d-%m-%Y %I:%M:%S %p By Virajsinh Nakum' ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement