How can I get the current timestamp in Kotlin?

You can get the current timestamp in Kotlin using the System.currentTimeMillis() function, which returns the number of milliseconds since the Unix epoch (January 1, 1970, 00:00:00 UTC).