aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/put_date.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-01-03 03:55:28 +1300
committerTom Ryder <tom@sanctum.geek.nz>2020-01-03 03:55:28 +1300
commit795a51fc0bfdfc252805748ee0cb5cefb1c8fff1 (patch)
tree104bcf758dbb5dfffafdeca53c1ac432eeed0303 /vim/autoload/put_date.vim
parentRemove duplicate function definitions (diff)
downloaddotfiles-795a51fc0bfdfc252805748ee0cb5cefb1c8fff1.tar.gz
dotfiles-795a51fc0bfdfc252805748ee0cb5cefb1c8fff1.zip
Fix up some blank lines and comments
Diffstat (limited to 'vim/autoload/put_date.vim')
-rw-r--r--vim/autoload/put_date.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/autoload/put_date.vim b/vim/autoload/put_date.vim
index c9f52c12..b0b0b548 100644
--- a/vim/autoload/put_date.vim
+++ b/vim/autoload/put_date.vim
@@ -1,5 +1,10 @@
+" RFC2822 format string for strftime()
let s:rfc_2822 = '%a, %d %b %Y %T %z'
+" Write a date to the buffer, UTC or local, in the specified format,
+" defaulting to RFC2822; formats are provided without the leading % signs
+" before each letter, like PHP date()
+"
function! put_date#(line, utc, format) abort
let line = a:line
let utc = a:utc