change time helpers
This commit is contained in:
parent
ad3ccbf0b8
commit
77726c4b16
2 changed files with 7 additions and 4 deletions
|
@ -19,10 +19,9 @@ alias mkrt='make -C $(git rev-parse --show-toplevel)'
|
|||
alias mk="make"
|
||||
alias mkc="make -C"
|
||||
|
||||
alias yyyymmdd='date +%Y%m%d'
|
||||
alias ds='date +%Y-%m-%d'
|
||||
alias ts='date +%Y-%m-%dT%H:%M:%SZ'
|
||||
alias today="date +'%Y.%m.%d'"
|
||||
# alias yyyymmdd='date +%Y%m%d'
|
||||
# alias ds='date +%Y-%m-%d'
|
||||
alias timestamp='date +%Y-%m-%dT%H:%M:%SZ'
|
||||
|
||||
# url encode/decode
|
||||
alias urldecode='python3 -c "import sys, urllib.parse as ul; \
|
||||
|
|
4
home/private_dot_config/zsh/functions/executable_today
Normal file
4
home/private_dot_config/zsh/functions/executable_today
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
local sep=${1:-}
|
||||
date "+%Y${sep}%m${sep}%d"
|
Loading…
Reference in a new issue