Calculate the time difference in Scala - Gatling

I am trying to calculate time difference between 2 ZonedTime dates in scala, I am receiving dates in “2021-03-19T15:39:42.834248-07:00” format as a String. I need the difference in seconds between 2 dates in scala. Can some one please help on how to convert the string to zoned time and calculate the difference.

Thanks

What are you focusing on Scala?
You can call any Java code from Scala, and you can find plenty of examples on how to calculate the difference between 2 dates in Java, eg https://www.baeldung.com/java-date-difference.

Thanks