Create a class like Date, but with its now value tied to the value of a Clock instance.

  • Parameters

    Returns {
        UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
        now(): number;
        parse(s: string): number;
        new (...args: any[]): {
            getVarDate: (() => VarDate);
            [toPrimitive](hint: "default"): string;
            [toPrimitive](hint: "string"): string;
            [toPrimitive](hint: "number"): number;
            [toPrimitive](hint: string): string | number;
            getDate(): number;
            getDay(): number;
            getFullYear(): number;
            getHours(): number;
            getMilliseconds(): number;
            getMinutes(): number;
            getMonth(): number;
            getSeconds(): number;
            getTime(): number;
            getTimezoneOffset(): number;
            getUTCDate(): number;
            getUTCDay(): number;
            getUTCFullYear(): number;
            getUTCHours(): number;
            getUTCMilliseconds(): number;
            getUTCMinutes(): number;
            getUTCMonth(): number;
            getUTCSeconds(): number;
            setDate(date: number): number;
            setFullYear(year: number, month?: number, date?: number): number;
            setHours(hours: number, min?: number, sec?: number, ms?: number): number;
            setMilliseconds(ms: number): number;
            setMinutes(min: number, sec?: number, ms?: number): number;
            setMonth(month: number, date?: number): number;
            setSeconds(sec: number, ms?: number): number;
            setTime(time: number): number;
            setUTCDate(date: number): number;
            setUTCFullYear(year: number, month?: number, date?: number): number;
            setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
            setUTCMilliseconds(ms: number): number;
            setUTCMinutes(min: number, sec?: number, ms?: number): number;
            setUTCMonth(month: number, date?: number): number;
            setUTCSeconds(sec: number, ms?: number): number;
            toDateString(): string;
            toISOString(): string;
            toJSON(key?: any): string;
            toLocaleDateString(): string;
            toLocaleDateString(locales?: string | string[], options?: DateTimeFormatOptions): string;
            toLocaleDateString(locales?: LocalesArgument, options?: DateTimeFormatOptions): string;
            toLocaleString(): string;
            toLocaleString(locales?: string | string[], options?: DateTimeFormatOptions): string;
            toLocaleString(locales?: LocalesArgument, options?: DateTimeFormatOptions): string;
            toLocaleTimeString(): string;
            toLocaleTimeString(locales?: string | string[], options?: DateTimeFormatOptions): string;
            toLocaleTimeString(locales?: LocalesArgument, options?: DateTimeFormatOptions): string;
            toString(): string;
            toTimeString(): string;
            toUTCString(): string;
            valueOf(): number;
        };
    }

      • new (...args): {
            getVarDate: (() => VarDate);
            [toPrimitive](hint: "default"): string;
            [toPrimitive](hint: "string"): string;
            [toPrimitive](hint: "number"): number;
            [toPrimitive](hint: string): string | number;
            getDate(): number;
            getDay(): number;
            getFullYear(): number;
            getHours(): number;
            getMilliseconds(): number;
            getMinutes(): number;
            getMonth(): number;
            getSeconds(): number;
            getTime(): number;
            getTimezoneOffset(): number;
            getUTCDate(): number;
            getUTCDay(): number;
            getUTCFullYear(): number;
            getUTCHours(): number;
            getUTCMilliseconds(): number;
            getUTCMinutes(): number;
            getUTCMonth(): number;
            getUTCSeconds(): number;
            setDate(date: number): number;
            setFullYear(year: number, month?: number, date?: number): number;
            setHours(hours: number, min?: number, sec?: number, ms?: number): number;
            setMilliseconds(ms: number): number;
            setMinutes(min: number, sec?: number, ms?: number): number;
            setMonth(month: number, date?: number): number;
            setSeconds(sec: number, ms?: number): number;
            setTime(time: number): number;
            setUTCDate(date: number): number;
            setUTCFullYear(year: number, month?: number, date?: number): number;
            setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
            setUTCMilliseconds(ms: number): number;
            setUTCMinutes(min: number, sec?: number, ms?: number): number;
            setUTCMonth(month: number, date?: number): number;
            setUTCSeconds(sec: number, ms?: number): number;
            toDateString(): string;
            toISOString(): string;
            toJSON(key?: any): string;
            toLocaleDateString(): string;
            toLocaleDateString(locales?: string | string[], options?: DateTimeFormatOptions): string;
            toLocaleDateString(locales?: LocalesArgument, options?: DateTimeFormatOptions): string;
            toLocaleString(): string;
            toLocaleString(locales?: string | string[], options?: DateTimeFormatOptions): string;
            toLocaleString(locales?: LocalesArgument, options?: DateTimeFormatOptions): string;
            toLocaleTimeString(): string;
            toLocaleTimeString(locales?: string | string[], options?: DateTimeFormatOptions): string;
            toLocaleTimeString(locales?: LocalesArgument, options?: DateTimeFormatOptions): string;
            toString(): string;
            toTimeString(): string;
            toUTCString(): string;
            valueOf(): number;
        }
      • Parameters

        • Rest...args: any[]

        Returns {
            getVarDate: (() => VarDate);
            [toPrimitive](hint: "default"): string;
            [toPrimitive](hint: "string"): string;
            [toPrimitive](hint: "number"): number;
            [toPrimitive](hint: string): string | number;
            getDate(): number;
            getDay(): number;
            getFullYear(): number;
            getHours(): number;
            getMilliseconds(): number;
            getMinutes(): number;
            getMonth(): number;
            getSeconds(): number;
            getTime(): number;
            getTimezoneOffset(): number;
            getUTCDate(): number;
            getUTCDay(): number;
            getUTCFullYear(): number;
            getUTCHours(): number;
            getUTCMilliseconds(): number;
            getUTCMinutes(): number;
            getUTCMonth(): number;
            getUTCSeconds(): number;
            setDate(date: number): number;
            setFullYear(year: number, month?: number, date?: number): number;
            setHours(hours: number, min?: number, sec?: number, ms?: number): number;
            setMilliseconds(ms: number): number;
            setMinutes(min: number, sec?: number, ms?: number): number;
            setMonth(month: number, date?: number): number;
            setSeconds(sec: number, ms?: number): number;
            setTime(time: number): number;
            setUTCDate(date: number): number;
            setUTCFullYear(year: number, month?: number, date?: number): number;
            setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
            setUTCMilliseconds(ms: number): number;
            setUTCMinutes(min: number, sec?: number, ms?: number): number;
            setUTCMonth(month: number, date?: number): number;
            setUTCSeconds(sec: number, ms?: number): number;
            toDateString(): string;
            toISOString(): string;
            toJSON(key?: any): string;
            toLocaleDateString(): string;
            toLocaleDateString(locales?: string | string[], options?: DateTimeFormatOptions): string;
            toLocaleDateString(locales?: LocalesArgument, options?: DateTimeFormatOptions): string;
            toLocaleString(): string;
            toLocaleString(locales?: string | string[], options?: DateTimeFormatOptions): string;
            toLocaleString(locales?: LocalesArgument, options?: DateTimeFormatOptions): string;
            toLocaleTimeString(): string;
            toLocaleTimeString(locales?: string | string[], options?: DateTimeFormatOptions): string;
            toLocaleTimeString(locales?: LocalesArgument, options?: DateTimeFormatOptions): string;
            toString(): string;
            toTimeString(): string;
            toUTCString(): string;
            valueOf(): number;
        }

        • getVarDate: (() => VarDate)
            • (): VarDate
            • Returns VarDate

        • [toPrimitive]:function
          • Parameters

            • hint: "default"

            Returns string

          • Parameters

            • hint: "string"

            Returns string

          • Parameters

            • hint: "number"

            Returns number

          • Parameters

            • hint: string

            Returns string | number

        • getDate:function
          • Returns number

        • getDay:function
          • Returns number

        • getFullYear:function
          • Returns number

        • getHours:function
          • Returns number

        • getMilliseconds:function
          • Returns number

        • getMinutes:function
          • Returns number

        • getMonth:function
          • Returns number

        • getSeconds:function
          • Returns number

        • getTime:function
          • Returns number

        • getTimezoneOffset:function
          • Returns number

        • getUTCDate:function
          • Returns number

        • getUTCDay:function
          • Returns number

        • getUTCFullYear:function
          • Returns number

        • getUTCHours:function
          • Returns number

        • getUTCMilliseconds:function
          • Returns number

        • getUTCMinutes:function
          • Returns number

        • getUTCMonth:function
          • Returns number

        • getUTCSeconds:function
          • Returns number

        • setDate:function
          • Parameters

            • date: number

            Returns number

        • setFullYear:function
          • Parameters

            • year: number
            • Optionalmonth: number
            • Optionaldate: number

            Returns number

        • setHours:function
          • Parameters

            • hours: number
            • Optionalmin: number
            • Optionalsec: number
            • Optionalms: number

            Returns number

        • setMilliseconds:function
          • Parameters

            • ms: number

            Returns number

        • setMinutes:function
          • Parameters

            • min: number
            • Optionalsec: number
            • Optionalms: number

            Returns number

        • setMonth:function
          • Parameters

            • month: number
            • Optionaldate: number

            Returns number

        • setSeconds:function
          • Parameters

            • sec: number
            • Optionalms: number

            Returns number

        • setTime:function
          • Parameters

            • time: number

            Returns number

        • setUTCDate:function
          • Parameters

            • date: number

            Returns number

        • setUTCFullYear:function
          • Parameters

            • year: number
            • Optionalmonth: number
            • Optionaldate: number

            Returns number

        • setUTCHours:function
          • Parameters

            • hours: number
            • Optionalmin: number
            • Optionalsec: number
            • Optionalms: number

            Returns number

        • setUTCMilliseconds:function
          • Parameters

            • ms: number

            Returns number

        • setUTCMinutes:function
          • Parameters

            • min: number
            • Optionalsec: number
            • Optionalms: number

            Returns number

        • setUTCMonth:function
          • Parameters

            • month: number
            • Optionaldate: number

            Returns number

        • setUTCSeconds:function
          • Parameters

            • sec: number
            • Optionalms: number

            Returns number

        • toDateString:function
          • Returns string

        • toISOString:function
          • Returns string

        • toJSON:function
          • Parameters

            • Optionalkey: any

            Returns string

        • toLocaleDateString:function
          • Returns string

          • Parameters

            • Optionallocales: string | string[]
            • Optionaloptions: DateTimeFormatOptions

            Returns string

          • Parameters

            • Optionallocales: LocalesArgument
            • Optionaloptions: DateTimeFormatOptions

            Returns string

        • toLocaleString:function
          • Returns string

          • Parameters

            • Optionallocales: string | string[]
            • Optionaloptions: DateTimeFormatOptions

            Returns string

          • Parameters

            • Optionallocales: LocalesArgument
            • Optionaloptions: DateTimeFormatOptions

            Returns string

        • toLocaleTimeString:function
          • Returns string

          • Parameters

            • Optionallocales: string | string[]
            • Optionaloptions: DateTimeFormatOptions

            Returns string

          • Parameters

            • Optionallocales: LocalesArgument
            • Optionaloptions: DateTimeFormatOptions

            Returns string

        • toString:function
          • Returns string

        • toTimeString:function
          • Returns string

        • toUTCString:function
          • Returns string

        • valueOf:function
          • Returns number

    • UTC:function
      • Parameters

        • year: number
        • monthIndex: number
        • Optionaldate: number
        • Optionalhours: number
        • Optionalminutes: number
        • Optionalseconds: number
        • Optionalms: number

        Returns number

    • now:function
      • Returns number

    • parse:function
      • Parameters

        • s: string

        Returns number