|
@ -1811,11 +1811,11 @@ _date2time() { |
|
|
return |
|
|
return |
|
|
fi |
|
|
fi |
|
|
#Omnios |
|
|
#Omnios |
|
|
if python3 -c "import datetime; print(int(datetime.datetime.strptime(\"$1\", \"%Y-%m-%d %H:%M:%S\").timestamp()))" 2>/dev/null; then |
|
|
|
|
|
|
|
|
if python3 -c "import datetime; print(int(datetime.datetime.strptime(\"$1\", \"%Y-%m-%d %H:%M:%S\").replace(tzinfo=datetime.timezone.utc).timestamp()))" 2>/dev/null; then |
|
|
return |
|
|
return |
|
|
fi |
|
|
fi |
|
|
#Omnios |
|
|
#Omnios |
|
|
if python3 -c "import datetime; print(int(datetime.datetime.strptime(\"$1\", \"%Y-%m-%dT%H:%M:%SZ\").timestamp()))" 2>/dev/null; then |
|
|
|
|
|
|
|
|
if python3 -c "import datetime; print(int(datetime.datetime.strptime(\"$1\", \"%Y-%m-%dT%H:%M:%SZ\").replace(tzinfo=datetime.timezone.utc).timestamp()))" 2>/dev/null; then |
|
|
return |
|
|
return |
|
|
fi |
|
|
fi |
|
|
_err "Cannot parse _date2time $1" |
|
|
_err "Cannot parse _date2time $1" |
|
|