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

com.github.t3hnar.scalax.examples.RichDurationExample.scala Maven / Gradle / Ivy

The newest version!
package com.github.t3hnar.scalax
package examples

/**
 * @author Yaroslav Klymko
 */
object RichDurationExample {

  import concurrent.duration._

  60.seconds.toCoarsest // 1.minute
  60.minutes.toCoarsest // 1.hour
  180.minutes.toCoarsest // 3.hours
  24.hours.toCoarsest // 1.day
  Duration.Inf.toCoarsest // Duration.Inf
  Duration.MinusInf.toCoarsest // Duration.MinusInf
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy