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

Method get

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

Source from the content-addressed store, hash-verified

1254 }
1255
1256 public get(property: string): unknown {
1257 switch (property) {
1258 case "years":
1259 return this.years;
1260 case "months":
1261 return this.#months;
1262 case "monthsOfYear":
1263 return this.monthsOfYear;
1264 case "days":
1265 return this.#days;
1266 case "hours":
1267 return this.hours;
1268 case "minutesOfHour":
1269 return this.minutesOfHour;
1270 case "seconds":
1271 return this.#seconds;
1272 case "secondsOfMinute":
1273 return this.secondsOfMinute;
1274 case "milliseconds":
1275 return this.milliseconds;
1276 case "microsecondsOfSecond":
1277 return this.microsecondsOfSecond;
1278 case "nanoseconds":
1279 return this.#nanoseconds;
1280 case "nanosecondsOfSecond":
1281 return this.nanosecondsOfSecond;
1282 default:
1283 return null;
1284 }
1285 }
1286
1287 /**
1288 * Convert to ISO 8601 duration string.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected