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

Method get

packages/graph/src/TemporalTypes.ts:268–285  ·  view source on GitHub ↗
(property: string)

Source from the content-addressed store, hash-verified

266 }
267
268 public get(property: string): unknown {
269 switch (property) {
270 case "hour":
271 return this.hour;
272 case "minute":
273 return this.minute;
274 case "second":
275 return this.second;
276 case "millisecond":
277 return this.millisecond;
278 case "microsecond":
279 return this.microsecond;
280 case "nanosecond":
281 return this.nanosecond;
282 default:
283 return null;
284 }
285 }
286
287 /**
288 * Convert to ISO string (HH:MM:SS.nnnnnnnnn).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected