There are a few ways to get the current timestamp. All method return the number of milliseconds:
// These method are the same
// The unary operator (`+`) calls the `valueOf` method automatically
Take a look at this snippet if you want to get the current time in seconds.