call getMilliseconds in ApiExamples.scala

This commit is contained in:
Havoc Pennington 2011-11-10 20:21:59 -05:00
parent 8ea188ed59
commit 43337aa315

View File

@ -19,6 +19,7 @@ class ApiExamples {
val a: Int = conf.getInt("ints.fortyTwo")
val obj: ConfigObject = conf.getObject("ints")
val c: Int = obj.getInt("fortyTwo")
val ms: Long = conf.getMilliseconds("durations.halfSecond")
// this is unfortunate; asScala creates a mutable map but
// the ConfigObject is in fact immutable.