slight change on the @DateT
return
1 2 3 4 5 6 7 8 9
| DateT: -> date = new Date() dateText = [ date.getFullYear(), '-', (date.getMonth() + 1), '-', date.getDate(), ' ', date.getHours(), ':', date.getMinutes(), ':', date.getSeconds() ].join("").replace( /\b(\d)\b/g, "0$1" ) editor = atom.workspace.getActivePaneItem() editor.insertText(dateText)
|