aboutsummaryrefslogtreecommitdiff
path: root/plugin/command.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-12-02 22:06:40 +0800
committerjdhao <jdhao@hotmail.com>2021-12-02 22:06:40 +0800
commit39e5e1913f432136b8746d64e37494eefa1f07c8 (patch)
tree6c4acbbaa6e1c2ad915105ad6f761a22e54f9acd /plugin/command.vim
parent80ceacbb020edbf17540e5f2d5e5d77781a951c2 (diff)
Add command :Datetime to show current time or translate a Unix timestamp
Diffstat (limited to 'plugin/command.vim')
-rw-r--r--plugin/command.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/command.vim b/plugin/command.vim
index a8e2998..d751831 100644
--- a/plugin/command.vim
+++ b/plugin/command.vim
@@ -5,3 +5,6 @@ command! -bar -bang -nargs=+ -complete=file Edit call utils#MultiEdit([<f-args>]
call utils#Cabbrev('edit', 'Edit')
call utils#Cabbrev('man', 'Man')
+
+" show current date and time in human readable format
+command! -nargs=? Datetime echo utils#iso_time(<q-args>)