box-o-sand/scala-tutorial/FrenchDate.scala

14 lines
294 B
Scala
Raw Normal View History

2012-03-04 04:15:05 +00:00
import java.util.{Date, Locale}
import java.text.DateFormat
import java.text.DateFormat._
object FrenchDate {
def main(args: Array[String]) {
val now = new Date
val df = getDateInstance(LONG, Locale.FRANCE)
println(df format now)
}
}
// vim: set ts=4 sw=4 et: