dtc
package dtc
- Alphabetic
- By Inheritance
- dtc
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait Capture[A] extends Serializable
Provides a way to capture
java.time
based instant into a value of type A.Provides a way to capture
java.time
based instant into a value of type A.- Annotations
- @implicitNotFound("Could not find an instance of Capture for ${A}")
- class ControlledTimeProvider[T] extends Provider[T]
An artificial time provider that is controlled from the outside.
- trait Local[A] extends TimePoint[A] with Serializable
A typeclass for local datetime values, that are unaware of DST and offsets.
A typeclass for local datetime values, that are unaware of DST and offsets. Can be also viewed as UTC time.
Semantics are similar to
java.time.LocalDateTime
- Annotations
- @implicitNotFound("Could not find an instance of Local for ${A}")
- final case class Offset(seconds: Int) extends AnyVal with Product with Serializable
Cross-platform representation for zoned time offset
Cross-platform representation for zoned time offset
- seconds
difference from UTC time in seconds
- trait Provider[T] extends Serializable
An abstraction that allows the concept of "current time" to be injected and controlled
An abstraction that allows the concept of "current time" to be injected and controlled
- Annotations
- @implicitNotFound("Could not find an instance of Provider for ${T}")
- trait TimePoint[A] extends Order[A] with Serializable
Common base type class for any dateTime.
Common base type class for any dateTime. Doesn't hold any laws, exact behaviour and laws are defined for it's children.
All the methods follow java.time._ semantics.
- Annotations
- @implicitNotFound("Could not find an instance of TimePoint for ${A}")
- final case class TimeZoneId(id: String) extends AnyVal with Product with Serializable
Cross-platform wrapper for time-zone id values.
Cross-platform wrapper for time-zone id values.
- id
raw zone id value
- trait Zoned[A] extends TimePoint[A] with Capture[A] with Serializable
A typeclass for zoned datetime values.
A typeclass for zoned datetime values. These values are zone aware and follow DST transformation rules.
Semantics are similar to
java.time.ZonedDateTime
- Annotations
- @implicitNotFound("Could not find an instance of Zoned for ${A}")
Value Members
- object Capture extends Serializable
- object Local extends Serializable
- object Offset extends Serializable
- object Ordering
Backward compatibility with 2.12.
Backward compatibility with 2.12. Deprecated in 2.13
- object Provider extends Serializable
- object TimePoint extends Serializable
- object TimeZoneId extends Serializable
- object Zoned extends Serializable