blob: 471300542dfcea6c40dbe3ca9ad9e338e332a7c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//jvm/src/main/scala/simple/Platform.scala
package simple
import java.text.SimpleDateFormat
import java.util.TimeZone
object Platform{
def format(ts: Long) = {
val fmt = new SimpleDateFormat(
"yyyy-MM-dd'T'HH:mm:ss.sss'Z'"
)
fmt.setTimeZone(TimeZone.getTimeZone("UTC"))
fmt.format(new java.util.Date(ts))
}
}
|