June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import scala.io.Source
|
||||
|
||||
object WebTime extends Application {
|
||||
val text = Source.fromURL("http://tycho.usno.navy.mil/cgi-bin/timer.pl")
|
||||
val utc = text.getLines.find(_.contains("UTC"))
|
||||
utc match {
|
||||
case Some(s) => println(s.substring(4))
|
||||
case _ => println("error")
|
||||
}
|
||||
val text = Source.fromURL("http://tycho.usno.navy.mil/cgi-bin/timer.pl")
|
||||
val utc = text.getLines.find(_.contains("UTC"))
|
||||
utc match {
|
||||
case Some(s) => println(s.substring(4))
|
||||
case _ => println("error")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue