blob: 40f65f45683aacd734b8b9f21390136900923a66 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/*js/src/main/scala/simple/Platform.scala*/
package simple
import scala.scalajs.js
object Platform extends js.JSApp{
def format(ts: Long) = {
new js.Date(ts).toLocaleString();
}
def main() = {
println("simple.js")
val times = Seq(
System.currentTimeMillis(),
System.currentTimeMillis() + 1000,
System.currentTimeMillis() + 2000
)
println(Simple.formatTimestamps(times))
}
}
|