object CantonTimestamp extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CantonTimestamp
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def Epoch: CantonTimestamp
- def MaxValue: CantonTimestamp
- def MinValue: CantonTimestamp
- def assertFromInstant(i: Instant): CantonTimestamp
- def assertFromLong(micros: Long): CantonTimestamp
- def fromInstant(i: Instant): Either[String, CantonTimestamp]
- def fromProtoPrimitive(ts: google.protobuf.timestamp.Timestamp): ParsingResult[CantonTimestamp]
- implicit val getResultOptionTimestamp: GetResult[Option[CantonTimestamp]]
- implicit val getResultTimestamp: GetResult[CantonTimestamp]
- def max(timestamp: CantonTimestamp, timestamps: CantonTimestamp*): CantonTimestamp
- def min(timestamp: CantonTimestamp, timestamps: CantonTimestamp*): CantonTimestamp
- def now(): CantonTimestamp
Get Instant.now (try to use clock.now instead!)
Get Instant.now (try to use clock.now instead!)
Generally, try to use clock.now except for tests. Clock.now supports sim-clock such that we can perform static time tests.
- def ofEpochMicro(micros: Long): CantonTimestamp
- def ofEpochMilli(milli: Long): CantonTimestamp
- def ofEpochSecond(seconds: Long): CantonTimestamp
- implicit val orderCantonTimestamp: Order[CantonTimestamp]
- implicit val setParameterOptionTimestamp: SetParameter[Option[CantonTimestamp]]
- implicit val setParameterTimestamp: SetParameter[CantonTimestamp]