Hi,
if "e" flag in 's///e' were supported, I could use:
uversionmangle=s/(.*)/`date --date='$1' +%s`/e
With a perl call from shell it would be:
echo "2023-06-08 14:28:41.521115" | perl -p -e 's/(.*)/`date --date="$1" +%s`/
e'
Full watch file for information (with s///e)
version=4
opts="searchmode=plain, \
uversionmangle=s/(.*)/`date --date='$1' +%s`/e, \
downloadurlmangle=s#.*#https://dl.google.com/android/repository/
repository2-1.xml#, \
filenamemangle=s#.*#repository2-1.xml#" \
https://dl.google.com/android/repository/repository2-1.xml Generated\son\s(.*)
\swith\sADRT
Full watch file for information (with date)
version=4
opts="searchmode=plain, \
uversionmangle=date//%s/, \
downloadurlmangle=s#.*#https://dl.google.com/android/repository/
repository2-1.xml#, \
filenamemangle=s#.*#repository2-1.xml#" \
https://dl.google.com/android/repository/repository2-1.xml Generated\son\s(.*)
\swith\sADRT
Regards
Fab