diff options
author | B. Stack <bgstack15@gmail.com> | 2024-07-20 13:03:46 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2024-07-20 13:03:46 -0400 |
commit | 26333477b7594b34197ae9dec661551d77f42b89 (patch) | |
tree | 01e47a6372e1377a4cc332bbdfcc07bb83b22548 /scite/debian/stackrpms.lua | |
parent | npp 8.6.9 (diff) | |
download | stackrpms-26333477b7594b34197ae9dec661551d77f42b89.tar.gz stackrpms-26333477b7594b34197ae9dec661551d77f42b89.tar.bz2 stackrpms-26333477b7594b34197ae9dec661551d77f42b89.zip |
scite update stackrpms.lua
Diffstat (limited to 'scite/debian/stackrpms.lua')
-rw-r--r-- | scite/debian/stackrpms.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scite/debian/stackrpms.lua b/scite/debian/stackrpms.lua index 21f9257..75a6fd3 100644 --- a/scite/debian/stackrpms.lua +++ b/scite/debian/stackrpms.lua @@ -266,13 +266,14 @@ end -- %Y full year (1998) -- %y two-digit year (98) [00-99] -- %% the character '%' +-- Last modified 2024-07-20-7 09:10 function InsertDateAH() local dow = tostring(math.floor(os.date("%w") + 1)) local d1 = os.date("%Y-%m-%d-") local d2 = os.date(" %H:%M") - editor:AddText(d1..dow..d2) + editor:ReplaceSel(d1..dow..d2) end function InsertDateIso() local date_string = os.date("%Y-%m-%dT%T") - editor:AddText(date_string) + editor:ReplaceSel(date_string) end |