Merge pull request #589 from Neilpang/dev

add _utc_date function
pull/624/head
neil 2017-02-06 19:32:33 +08:00 committed by GitHub
commit d1190febec
1 changed files with 4 additions and 0 deletions

View File

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