MCPcopy Create free account
hub / github.com/codemix/graph / compareTo

Method compareTo

packages/graph/src/TemporalTypes.ts:305–310  ·  view source on GitHub ↗
(other: LocalTimeValue)

Source from the content-addressed store, hash-verified

303 }
304
305 public compareTo(other: LocalTimeValue): number {
306 if (this.#hour !== other.#hour) return this.#hour - other.#hour;
307 if (this.#minute !== other.#minute) return this.#minute - other.#minute;
308 if (this.#second !== other.#second) return this.#second - other.#second;
309 return this.#nanosecond - other.#nanosecond;
310 }
311}
312
313/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected