How to get current time in milliseconds since Unix Epoch with Scala

1 Answer

0 votes
object TimeInMilliseconds_Scala {
  def main(args: Array[String]): Unit = {

    val timeInMillis = System.currentTimeMillis()

    println(timeInMillis)
  }
}



/*
run:

1728119526053

*/

 



answered Oct 5, 2024 by avibootz
...