All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalapb.DurationMethods.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0-alpha.1
Show newest version
package scalapb

import java.time.{Duration => jtDuration}

trait DurationMethods {
  def seconds: Long
  def nanos: Int

  final def asJavaDuration: jtDuration = jtDuration.ofSeconds(seconds).plusNanos(nanos.toLong)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy