Jump to content

Show the epoch: Difference between revisions

→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details
(Added Kotlin)
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
Line 442:
=={{header|Kotlin}}==
{{trans|Java}}
<lang scala>// version 1.1.12
 
import java.util.Date
Line 453:
format.timeZone = TimeZone.getTimeZone("UTC")
println(format.format(epoch))
}</lang>
}
</lang>
 
{{out}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.