Integrated scala code with java - time for some scala :v: