add _utc_date function

This commit is contained in:
neilpang 2017-02-06 19:30:53 +08:00
parent d6edff3182
commit 5d2c5b01a8

View File

@ -1265,6 +1265,10 @@ _time() {
date -u "+%s"
}
_utc_date() {
date -u "+%Y-%m-%d %H:%M:%S"
}
_mktemp() {
if _exists mktemp; then
if mktemp 2>/dev/null; then