time

coulomb.units.time$
object time

Units of time or duration

Attributes

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

Members list

Concise view

Type members

Classlikes

object EpochTime

Attributes

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

Types

final type Day

A duration of 24 hours

A duration of 24 hours

Attributes

Source:
time.scala
final type EpochTime[V, U] = DeltaQuantity[V, U, Second]

Represents an instant in time measured with respect to the standard unix epoch 00:00:00 UTC January 1, 1970

Represents an instant in time measured with respect to the standard unix epoch 00:00:00 UTC January 1, 1970

Attributes

U

the unit type, requiring base unit coulomb.units.si.Second

V

the value type containing the time quantity

Source:
time.scala
final type Hour

A duration of 60 minutes or 3600 seconds

A duration of 60 minutes or 3600 seconds

Attributes

Source:
time.scala
final type Minute

A duration of 60 seconds

A duration of 60 seconds

Attributes

Source:
time.scala
final type Week

A duration of 7 days

A duration of 7 days

Attributes

Source:
time.scala

Givens

Givens

given ctx_unit_Day: DerivedUnit[Day, 86400 * Second, "day", "d"]

Attributes

Source:
time.scala
given ctx_unit_Hour: DerivedUnit[Hour, 3600 * Second, "hour", "h"]

Attributes

Source:
time.scala
given ctx_unit_Minute: DerivedUnit[Minute, 60 * Second, "minute", "min"]

Attributes

Source:
time.scala
given ctx_unit_Week: DerivedUnit[Week, 604800 * Second, "week", "wk"]

Attributes

Source:
time.scala

Extensions

Extensions

extension [V](v: V)
def withEpochTime[U]: EpochTime[V, U]

Lift a raw value to an EpochTime instant

Lift a raw value to an EpochTime instant

Attributes

U

the unit type to use, expected to have base unit coulomb.units.si.Second

Returns:

an EpochTime object representing desired instant

Example:
// the instant in time one million hours from Jan 1, 1970
val instant = (1e6).withEpochTime[Hour]
Source:
time.scala

Exports

Defined exports

final type Second = Second
Exported from si$

Attributes

Source:
time.scala
Exported from si

Attributes

Source:
si.scala