Mercurial Hosting > luan
comparison core/src/luan/modules/Time.luan @ 272:eb27e765affb
rename Io.protocols to Io.schemes and "class:" to "java:"
git-svn-id: https://luan-java.googlecode.com/svn/trunk@273 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 31 Oct 2014 04:50:24 +0000 |
parents | 9e0d4452e649 |
children | 073044e3ac03 |
comparison
equal
deleted
inserted
replaced
271:82a3ebcfbafa | 272:eb27e765affb |
---|---|
1 -- incomplete, will add as needed | 1 -- incomplete, will add as needed |
2 | 2 |
3 import "luan:String" | 3 import "luan:String" |
4 import "luan:Table" | 4 import "luan:Table" |
5 import "luan:Java" | 5 import "luan:Java" |
6 import "class:java.lang.System" | 6 import "java:java.lang.System" |
7 import "class:java.util.Calendar" | 7 import "java:java.util.Calendar" |
8 import "class:java.util.Date" | 8 import "java:java.util.Date" |
9 import "class:java.text.SimpleDateFormat" | 9 import "java:java.text.SimpleDateFormat" |
10 | 10 |
11 | 11 |
12 function now() | 12 function now() |
13 return System.currentTimeMillis() | 13 return System.currentTimeMillis() |
14 end | 14 end |