aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/put_date.vim
diff options
context:
space:
mode:
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