diff options
author | Li Haoyi <haoyi@dropbox.com> | 2014-11-09 10:08:47 -0800 |
---|---|---|
committer | Li Haoyi <haoyi@dropbox.com> | 2014-11-09 10:08:47 -0800 |
commit | 978a138c02c07822ef71f31f71e552a9659a0a53 (patch) | |
tree | 9771e4d4620af7e6f5ff54cb4c711e04cffb4e30 /examples/crossBuilds/simple2/js/src/main/scala/simple/Platform.scala | |
parent | 795c0eb5de003b22c3874762557ae2b34ae64de0 (diff) | |
download | hands-on-scala-js-978a138c02c07822ef71f31f71e552a9659a0a53.tar.gz hands-on-scala-js-978a138c02c07822ef71f31f71e552a9659a0a53.tar.bz2 hands-on-scala-js-978a138c02c07822ef71f31f71e552a9659a0a53.zip |
wip
Diffstat (limited to 'examples/crossBuilds/simple2/js/src/main/scala/simple/Platform.scala')
-rw-r--r-- | examples/crossBuilds/simple2/js/src/main/scala/simple/Platform.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/crossBuilds/simple2/js/src/main/scala/simple/Platform.scala b/examples/crossBuilds/simple2/js/src/main/scala/simple/Platform.scala new file mode 100644 index 0000000..2a02a5e --- /dev/null +++ b/examples/crossBuilds/simple2/js/src/main/scala/simple/Platform.scala @@ -0,0 +1,9 @@ +//js/src/main/scala/simple/Platform.scala +package simple +import scala.scalajs.js + +object Platform{ + def format(ts: Long) = { + new js.Date(ts).toLocaleString() + } +}
\ No newline at end of file |