Unverified Commit 0bc55661 authored by neil's avatar neil Committed by GitHub
Browse files

Merge pull request #1746 from j-c-m/time2str-dev

BSD fix _time2str()
parents 411b342a cb115809
......@@ -1374,17 +1374,17 @@ _url_replace() {
}
_time2str() {
#Linux
if date -u -d@"$1" 2>/dev/null; then
#BSD
if date -u -r "$1" 2>/dev/null; then
return
fi
#BSD
if date -u -r "$1" 2>/dev/null; then
#Linux
if date -u -d@"$1" 2>/dev/null; then
return
fi
#Soaris
#Solaris
if _exists adb; then
_t_s_a=$(echo "0t${1}=Y" | adb)
echo "$_t_s_a"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment