diff options
Diffstat (limited to 'examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala')
-rw-r--r-- | examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala b/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala index 40f65f4..ee2f5da 100644 --- a/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala +++ b/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala @@ -1,18 +1,17 @@ -/*js/src/main/scala/simple/Platform.scala*/ +//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(); + new js.Date(ts).toLocaleString() } def main() = { - println("simple.js") val times = Seq( System.currentTimeMillis(), - System.currentTimeMillis() + 1000, - System.currentTimeMillis() + 2000 + System.currentTimeMillis() + 1000 ) - println(Simple.formatTimestamps(times)) + println("Running on JS! " + 1.0d) + println(Simple.formatTimes(times)) } }
\ No newline at end of file |