l0basetom - 2015-06-24

This script inserts the time & date in any format you want (just modify the code below), similar to pressing F5 in Notepad.

Code:

import time
editor.addText(time.strftime('%Y-%m-%d %I:%M %p'))



Credit goes to Oliver Baty from his article posted here:
https://ardamis.com/2014/03/09/adding-an-insert-datestamp-or-timestamp-macro-to-notepad-plus-plus/

 

Last edit: l0basetom 2015-06-24