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

Method get

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

Source from the content-addressed store, hash-verified

627 }
628
629 public get(property: string): unknown {
630 switch (property) {
631 case "year":
632 return this.year;
633 case "month":
634 return this.month;
635 case "day":
636 return this.day;
637 case "week":
638 return this.week;
639 case "dayOfWeek":
640 return this.dayOfWeek;
641 case "quarter":
642 return this.quarter;
643 case "ordinalDay":
644 return this.ordinalDay;
645 case "hour":
646 return this.hour;
647 case "minute":
648 return this.minute;
649 case "second":
650 return this.second;
651 case "millisecond":
652 return this.millisecond;
653 case "microsecond":
654 return this.microsecond;
655 case "nanosecond":
656 return this.nanosecond;
657 default:
658 return null;
659 }
660 }
661
662 /**
663 * Convert to ISO string (YYYY-MM-DDTHH:MM:SS.nnnnnnnnn).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected