mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
40013: process zsh-specific time format extensions correctly
This commit is contained in:
parent
5dc7b35ff6
commit
53e6b12bdf
3 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2016-11-24 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||
|
||||
* 40013: Completion/Unix/Type/_date_formats,
|
||||
Completion/Zsh/Command/_strftime: process zsh-specific time
|
||||
format extensions correctly
|
||||
|
||||
2016-11-25 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* unposted: Functions/Zle/surround: set new vichange flag
|
||||
|
|
|
@ -32,7 +32,7 @@ specs=(
|
|||
'H:hour (00-23)'
|
||||
'I:hour (01-12)'
|
||||
'j:day of year (001-366)'
|
||||
'k:hour ( 1-23)'
|
||||
'k:hour ( 0-23)'
|
||||
'l:hour ( 1-12)'
|
||||
'm:month (01-12)'
|
||||
'M:minute (00-59)'
|
||||
|
@ -102,4 +102,4 @@ done
|
|||
|
||||
_describe -t date-format-specifier 'date format specifier' specs \
|
||||
-p "${(Q)PREFIX:-%}" -S ''
|
||||
_message -e date-format-precision 'precision for %%. (1-6)'
|
||||
[[ $1 == zsh ]] && _message -e date-format-precision 'precision for %%. (1-6)'
|
||||
|
|
|
@ -6,7 +6,7 @@ _arguments -S -A '-*' -s \
|
|||
'-q[run quietly]' \
|
||||
'-r[reverse lookup using strptime]' \
|
||||
'-s+[assign result to parameter]:param:_parameters' \
|
||||
'1:format: _date_formats' \
|
||||
'1:format: _date_formats zsh' \
|
||||
'2:epoch time (or date string with -r)' && ret=0
|
||||
|
||||
return ret
|
||||
|
|
Loading…
Reference in a new issue