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

Method constructor

packages/graph/src/TemporalTypes.ts:716–736  ·  view source on GitHub ↗
(
    year: number,
    month: number,
    day: number,
    hour: number = 0,
    minute: number = 0,
    second: number = 0,
    nanosecond: number = 0,
    offsetSeconds: number = 0,
    timezone: string | null = null,
  )

Source from the content-addressed store, hash-verified

714 #timezone: string | null;
715
716 public constructor(
717 year: number,
718 month: number,
719 day: number,
720 hour: number = 0,
721 minute: number = 0,
722 second: number = 0,
723 nanosecond: number = 0,
724 offsetSeconds: number = 0,
725 timezone: string | null = null,
726 ) {
727 this.#year = year;
728 this.#month = month;
729 this.#day = day;
730 this.#hour = hour;
731 this.#minute = minute;
732 this.#second = second;
733 this.#nanosecond = nanosecond;
734 this.#offsetSeconds = offsetSeconds;
735 this.#timezone = timezone;
736 }
737
738 /**
739 * Create a DateTimeValue from an ISO datetime string with timezone.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected