conversions

coulomb.units.javatime$.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

Concise view

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

Attributes

U

the quantity unit type

V

the quantity value type

Source:
time.scala
Graph
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
Graph
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
Graph
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

Attributes

U

the quantity unit type

V

the quantity value type

Source:
time.scala
Graph
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

Attributes

U

the quantity unit type

V

the quantity value type

Source:
time.scala
Graph
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
Graph
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
Graph
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
Graph
Supertypes
class Object
trait Matchable
class Any
Self 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
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
scala.type