Scala
scala.util.parsing
を使うにはlibraryDependencyを追加しなくてはならない。 https://www.scala-lang.org/api/current/
SBT
libraryDependencies ++= Seq(...)
で書いた方が可読性が上がる
Bash
str=sample.MP4 echo ${str%.MP4} # ⇒ sample
ヒアストリングとsedを組み合わせる
man pageの日本語化
TODO
scaladocの入力補完, ショートカット
withZoneSameLocal
とwithZoneSameInstant
の違い
def getGprmcRow(nmeaFile: File, ldt: LocalDateTime, zoneId: ZoneId) = { val zdt = ldt.atZone(zoneId) val utc = zdt.withZoneSameInstant(ZoneId.of("UTC")) //UTC時刻 }