linux change date and then change files ctime

C++
$ NOW=$(date) && date -s "2030-08-15 21:30:11" && touch file.txt && date -s "$NOW"
Source

Also in C++: