#.require. jvm @platform jvm namespace Test class Test def main is shared #now as Date = Date() #DateTime.now #assert now.year > 2000 now as Calendar = Calendar.getInstance assert now.get(Calendar.YEAR) > 2000