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

Method constructor

packages/graph/src/TemporalTypes.ts:504–520  ·  view source on GitHub ↗
(
    year: number,
    month: number,
    day: number,
    hour: number = 0,
    minute: number = 0,
    second: number = 0,
    nanosecond: number = 0,
  )

Source from the content-addressed store, hash-verified

502 #nanosecond: number;
503
504 public constructor(
505 year: number,
506 month: number,
507 day: number,
508 hour: number = 0,
509 minute: number = 0,
510 second: number = 0,
511 nanosecond: number = 0,
512 ) {
513 this.#year = year;
514 this.#month = month;
515 this.#day = day;
516 this.#hour = hour;
517 this.#minute = minute;
518 this.#second = second;
519 this.#nanosecond = nanosecond;
520 }
521
522 /**
523 * Create a LocalDateTimeValue from an ISO datetime string.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected