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

Method get

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

Source from the content-addressed store, hash-verified

419 }
420
421 public get(property: string): unknown {
422 switch (property) {
423 case "hour":
424 return this.hour;
425 case "minute":
426 return this.minute;
427 case "second":
428 return this.second;
429 case "millisecond":
430 return this.millisecond;
431 case "microsecond":
432 return this.microsecond;
433 case "nanosecond":
434 return this.nanosecond;
435 case "offset":
436 return this.offset;
437 case "offsetMinutes":
438 return this.offsetMinutes;
439 default:
440 return null;
441 }
442 }
443
444 /**
445 * Format timezone offset as +HH:MM or -HH:MM.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected