How to get milliseconds timestamp in gdscript

Check How to get time in milliseconds/milliseconds timestamp in gdscript? - #3 by hotpepper for an updated answer for the latest Godot 4 which is a true “Timestamp” (in the sense it starts from 1970 rather than from when the program was started).