There is a way in Jetbrains IDEs to insert the current timestamp anywhere.
First go to Settings | Editor | Live Templates and create a new one with:
ts
Current timestamp
$timestamp$
Then click Edit variables and set the expression to this:
groovyScript("(int) (new Date().getTime() / 1000L);")
The last thing to do is to define the context where the shortcut will be available.
Now all you need to do is type ts
then press tab to insert the current timestamp.