change logging
This commit is contained in:
parent
012b8c6017
commit
b722339446
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ parsedatetime() {
|
||||||
# 2020.04.02_15-32-20+02:00.jpg
|
# 2020.04.02_15-32-20+02:00.jpg
|
||||||
# 2020.04.13_10-59-14+02:00.jpg
|
# 2020.04.13_10-59-14+02:00.jpg
|
||||||
# WhatsApp Image 2019-07-29 at 12.45.02.jpeg
|
# WhatsApp Image 2019-07-29 at 12.45.02.jpeg
|
||||||
echo fn: $filename >&2
|
loginfo "fn: $filename"
|
||||||
if [[ $filename =~ ^.*([0-9]{4})(\.|-)([0-9]{2})(\.|-)([0-9]{2})( |_|-|" at ")([0-9]{2})(\.|-|:)([0-9]{2})(\.|-|:)([0-9]{2})(\.|-|\+|\(| ).*$ ]]; then
|
if [[ $filename =~ ^.*([0-9]{4})(\.|-)([0-9]{2})(\.|-)([0-9]{2})( |_|-|" at ")([0-9]{2})(\.|-|:)([0-9]{2})(\.|-|:)([0-9]{2})(\.|-|\+|\(| ).*$ ]]; then
|
||||||
result="$(printf "%04d:%02d:%02d %02d:%02d:%02d" "${BASH_REMATCH[1]#0}" "${BASH_REMATCH[3]#0}" "${BASH_REMATCH[5]#0}" "${BASH_REMATCH[7]#0}" "${BASH_REMATCH[9]#0}" "${BASH_REMATCH[11]#0}")"
|
result="$(printf "%04d:%02d:%02d %02d:%02d:%02d" "${BASH_REMATCH[1]#0}" "${BASH_REMATCH[3]#0}" "${BASH_REMATCH[5]#0}" "${BASH_REMATCH[7]#0}" "${BASH_REMATCH[9]#0}" "${BASH_REMATCH[11]#0}")"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue