Lines Matching refs:Timestamp
20 constructor(readonly from: Timestamp, readonly to: Timestamp) {}
22 containsTimestamp(ts: Timestamp): boolean {
35 format(timestamp: Timestamp, type: TimestampFormatType): string;
43 export class Timestamp { class
67 add(n: bigint): Timestamp {
68 return new Timestamp(this.getValueNs() + n, this.formatter);
71 minus(n: bigint): Timestamp {
72 return new Timestamp(this.getValueNs() - n, this.formatter);
75 times(n: bigint): Timestamp {
76 return new Timestamp(this.getValueNs() * n, this.formatter);
79 div(n: bigint): Timestamp {
80 return new Timestamp(this.getValueNs() / n, this.formatter);
88 export type MakeTimestampStrategyType = (valueNs: bigint) => Timestamp;