diff options
| author | jdhao <jdhao@hotmail.com> | 2021-11-01 22:39:36 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-11-01 22:39:36 +0800 |
| commit | 2d27a699dce5a5d8f3f667a44712b40d218fe75a (patch) | |
| tree | 0814b0d3f4aaa7e3fe3c038ec9387cc5176ae541 /autoload/utils.vim | |
| parent | 51c19507b74219082e261338eca0232df40283aa (diff) | |
add iso time utils function
Diffstat (limited to 'autoload/utils.vim')
| -rw-r--r-- | autoload/utils.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/utils.vim b/autoload/utils.vim index 0231e8b..4847ca7 100644 --- a/autoload/utils.vim +++ b/autoload/utils.vim @@ -153,6 +153,11 @@ function! utils#Get_titlestr() abort return l:title_str endfunction +" Output current time in ISO format. +function! utils#iso_time() abort + return strftime('%Y-%m-%d %H:%M:%S%z') +endfunction + " Check if we are inside a Git repo. function! utils#Inside_git_repo() abort let res = system('git rev-parse --is-inside-work-tree') |
