summaryrefslogtreecommitdiff
path: root/examples/crossBuilds/simple2/jvm/src/main/scala/simple/Platform.scala
blob: 1b7be569c0d81f71426923833eb461ee632f063b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
//jvm/src/main/scala/simple/Platform.scala
package simple
import java.text.SimpleDateFormat

object Platform{
  def format(ts: Long) = {
    val fmt =
      "MMMM d, yyyy h:mm:ss aaa z"
    new SimpleDateFormat(fmt).format(
      new java.util.Date(ts)
    )
  }
}