make a commit with past date

C++
 git commit --amend --date="YYYY-MM-DD HH:MM:SS"
Source

Also in C++: