conversions

coulomb.units.javatime.conversions
object conversions

Conversion typeclasses between coulomb types and java.time types

Attributes

Source
time.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

abstract class DurationQuantity[V, U] extends Duration => Quantity[V, U]

A typeclass for converting a Duration to an equivalent Quantity

A typeclass for converting a Duration to an equivalent Quantity

Type parameters

U

the quantity unit type

V

the quantity value type

Attributes

Source
time.scala
Supertypes
trait Duration => Quantity[V, U]
class Object
trait Matchable
class Any
abstract class EpochTimeInstant[V, U] extends EpochTime[V, U] => Instant

Attributes

Source
time.scala
Supertypes
trait EpochTime[V, U] => Instant
class Object
trait Matchable
class Any
abstract class InstantEpochTime[V, U] extends Instant => EpochTime[V, U]

Attributes

Source
time.scala
Supertypes
trait Instant => EpochTime[V, U]
class Object
trait Matchable
class Any
abstract class QuantityDuration[V, U] extends Quantity[V, U] => Duration

A typeclass for converting a Quantity to an equivalent Duration

A typeclass for converting a Quantity to an equivalent Duration

Type parameters

U

the quantity unit type

V

the quantity value type

Attributes

Source
time.scala
Supertypes
trait Quantity[V, U] => Duration
class Object
trait Matchable
class Any
abstract class TruncatingDurationQuantity[V, U] extends Duration => Quantity[V, U]

A typeclass for converting a Duration to an equivalent Quantity involving a truncation to some integral value type

A typeclass for converting a Duration to an equivalent Quantity involving a truncation to some integral value type

Type parameters

U

the quantity unit type

V

the quantity value type

Attributes

Source
time.scala
Supertypes
trait Duration => Quantity[V, U]
class Object
trait Matchable
class Any
abstract class TruncatingInstantEpochTime[V, U] extends Instant => EpochTime[V, U]

Attributes

Source
time.scala
Supertypes
trait Instant => EpochTime[V, U]
class Object
trait Matchable
class Any
object all

exports both explicit and implicit conversion typeclasses

exports both explicit and implicit conversion typeclasses

Attributes

Example
// import both explicit and implicit conversion typeclasses into scope
import coulomb.units.javatime.conversions.all.given
Source
time.scala
Supertypes
class Object
trait Matchable
class Any
Self type
all.type
object explicit

defines typeclasses for explicit conversions

defines typeclasses for explicit conversions

Attributes

Example
// import typeclasses for explicit conversions into scope
import coulomb.units.javatime.conversions.explicit.given
Source
time.scala
Supertypes
class Object
trait Matchable
class Any
Self type
explicit.type
object scala

defines implicit scala.Conversion typeclasses

defines implicit scala.Conversion typeclasses

Attributes

Example
// import implicit conversion typeclasses into scope
import coulomb.units.javatime.conversions.scala.given
Source
time.scala
Supertypes
class Object
trait Matchable
class Any
Self type
scala.type