Anonymous 10/19/2023 (Thu) 18:19 No.35109 del
>>35051
Thanks. 4chan time falls 5 hours behind UTC in first days of November. TZ=US/Eastern also works. Here's a an updated short function.
fourchan_time(){

for FILE_PATH in "$@";do
FILENAME=$(basename "$FILE_PATH")
CHAN4_TS="${FILENAME%%.*}"
CHAN4_TS="${CHAN4_TS%%s*}" # handles thumbnail names
UNIX_TS="$(("$CHAN4_TS"/1000))"
POST_TIME="$(TZ=America/New_York date --date @"$UNIX_TS" +'%Y-%m-%dT%H:%M:%S')"
echo "File: $FILENAME"
echo "https://desuarchive.org/_/search/filter/text/start/"$POST_TIME"/end/"$POST_TIME"/order/asc"
done;}

I added more archive addresses in the script.