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

Method toString

packages/graph/src/TemporalTypes.ts:165–170  ·  view source on GitHub ↗

* Convert to ISO string (YYYY-MM-DD).

()

Source from the content-addressed store, hash-verified

163 * Convert to ISO string (YYYY-MM-DD).
164 */
165 public toString(): string {
166 const y = String(this.#year).padStart(4, "0");
167 const m = String(this.#month).padStart(2, "0");
168 const d = String(this.#day).padStart(2, "0");
169 return `${y}-${m}-${d}`;
170 }
171
172 /**
173 * Compare two dates for sorting.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected