Add date snippet to display Month DD, YYYY
This commit is contained in:
parent
5fc0662a58
commit
1e82228c1b
@ -20,8 +20,16 @@ def commentafter():
|
|||||||
if 0 < len(after):
|
if 0 < len(after):
|
||||||
return ' ' + after
|
return ' ' + after
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
import datetime
|
||||||
|
def date():
|
||||||
|
return datetime.datetime.now().strftime('%B %d, %Y')
|
||||||
endglobal
|
endglobal
|
||||||
|
|
||||||
|
snippet date "Today's date"
|
||||||
|
`!p snip.rv=date()`
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet codeplay "Codeplay Software Ltd. copywrite"
|
snippet codeplay "Codeplay Software Ltd. copywrite"
|
||||||
`!p snip.rv=commentbefore()`Copyright (C) 2002-2016 Codeplay Software Limited. All Rights Reserved.`!p snip.rv=commentafter()`
|
`!p snip.rv=commentbefore()`Copyright (C) 2002-2016 Codeplay Software Limited. All Rights Reserved.`!p snip.rv=commentafter()`
|
||||||
$0
|
$0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user