diff --git a/frameworks/bridge/arkts_frontend/koala_mirror/incremental/compat/src/arkts/observable.ts b/frameworks/bridge/arkts_frontend/koala_mirror/incremental/compat/src/arkts/observable.ts index fd2f5b458b1ba07850c32468134a9eccc4c61b85..a22d36a81962bae56f72a39582f42b3efc634181 100644 --- a/frameworks/bridge/arkts_frontend/koala_mirror/incremental/compat/src/arkts/observable.ts +++ b/frameworks/bridge/arkts_frontend/koala_mirror/incremental/compat/src/arkts/observable.ts @@ -866,7 +866,7 @@ class ObservableDate extends Date { return super.toUTCString() } - override getDate(): number { + override getDate(): int { this.handler?.onAccess() return super.getDate() } @@ -876,12 +876,12 @@ class ObservableDate extends Date { super.setDate(value) } - override setDate(value: number): number { + override setDate(value: int): long { this.handler?.onModify() return super.setDate(value) } - override getUTCDate(): number { + override getUTCDate(): int { this.handler?.onAccess() return super.getUTCDate() } @@ -891,12 +891,12 @@ class ObservableDate extends Date { super.setUTCDate(value) } - override setUTCDate(value: number): number { + override setUTCDate(value: int): long { this.handler?.onModify() return super.setUTCDate(value) } - override getDay(): number { + override getDay(): int { this.handler?.onAccess() return super.getDay() } @@ -906,7 +906,7 @@ class ObservableDate extends Date { super.setDay(value) } - override getUTCDay(): number { + override getUTCDay(): int { this.handler?.onAccess() return super.getUTCDay() } @@ -916,12 +916,12 @@ class ObservableDate extends Date { super.setUTCDay(value) } - override setUTCDay(value: number): number { + override setUTCDay(value: int): long { this.handler?.onModify() return super.setUTCDay(value) } - override getMonth(): number { + override getMonth(): int { this.handler?.onAccess() return super.getMonth() } @@ -931,12 +931,12 @@ class ObservableDate extends Date { super.setMonth(value) } - override setMonth(value: number, date?: number): number { + override setMonth(value: int, date?: int): long { this.handler?.onModify() return super.setMonth(value, date) } - override getUTCMonth(): number { + override getUTCMonth(): int { this.handler?.onAccess() return super.getUTCMonth() } @@ -946,7 +946,7 @@ class ObservableDate extends Date { super.setUTCMonth(value) } - override setUTCMonth(value: number, date?: number): number { + override setUTCMonth(value: int, date?: int): long { this.handler?.onModify() return super.setUTCMonth(value, date) } @@ -961,17 +961,12 @@ class ObservableDate extends Date { super.setYear(value) } - override setYear(value: number) { - this.handler?.onModify() - super.setYear(value) - } - - override getFullYear(): number { + override getFullYear(): int { this.handler?.onAccess() return super.getFullYear() } - override setFullYear(value: number, month?: number, date?: number): number { + override setFullYear(value: int, month?: int, date?: int): long { this.handler?.onModify() return super.setFullYear(value, month, date) } @@ -981,12 +976,12 @@ class ObservableDate extends Date { super.setFullYear(value) } - override getUTCFullYear(): number { + override getUTCFullYear(): int { this.handler?.onAccess() return super.getUTCFullYear() } - override setUTCFullYear(value: number, month?: number, date?: number): number { + override setUTCFullYear(value: int, month?: int, date?: int): long { this.handler?.onModify() return super.setUTCFullYear(value, month, date) } @@ -996,27 +991,22 @@ class ObservableDate extends Date { super.setUTCFullYear(value) } - override getTime(): number { + override getTime(): long { this.handler?.onAccess() return super.getTime() } - override setTime(value: long) { - this.handler?.onModify() - super.setTime(value) - } - - override setTime(value: number): number { + override setTime(value: long): long { this.handler?.onModify() return super.setTime(value) } - override getHours(): number { + override getHours(): int { this.handler?.onAccess() return super.getHours() } - override setHours(value: number, min?: number, sec?: number, ms?: number): number { + override setHours(value: int, min?: int, sec?: int, ms?: int): long { this.handler?.onModify() return super.setHours(value, min, sec, ms) } @@ -1026,12 +1016,12 @@ class ObservableDate extends Date { super.setHours(value) } - override getUTCHours(): number { + override getUTCHours(): int { this.handler?.onAccess() return super.getUTCHours() } - override setUTCHours(value: number, min?: number, sec?: number, ms?: number): number { + override setUTCHours(value: int, min?: int, sec?: int, ms?: int): long { this.handler?.onModify() return super.setUTCHours(value, min, sec, ms) } @@ -1041,7 +1031,7 @@ class ObservableDate extends Date { super.setUTCHours(value) } - override getMilliseconds(): number { + override getMilliseconds(): long { this.handler?.onAccess() return super.getMilliseconds() } @@ -1051,12 +1041,12 @@ class ObservableDate extends Date { super.setMilliseconds(value) } - override setMilliseconds(value: number): number { + override setMilliseconds(value: int): long { this.handler?.onModify() return super.setMilliseconds(value) } - override getUTCMilliseconds(): number { + override getUTCMilliseconds(): int { this.handler?.onAccess() return super.getUTCMilliseconds() } @@ -1066,12 +1056,12 @@ class ObservableDate extends Date { super.setUTCMilliseconds(value) } - override setUTCMilliseconds(value: number): number { + override setUTCMilliseconds(value: int): long { this.handler?.onModify() return super.setUTCMilliseconds(value) } - override getSeconds(): number { + override getSeconds(): int { this.handler?.onAccess() return super.getSeconds() } @@ -1081,12 +1071,12 @@ class ObservableDate extends Date { super.setSeconds(value) } - override setSeconds(value: number, ms?: number): number { + override setSeconds(value: int, ms?: int): long { this.handler?.onModify() return super.setSeconds(value, ms) } - override getUTCSeconds(): number { + override getUTCSeconds(): int { this.handler?.onAccess() return super.getUTCSeconds() } @@ -1096,12 +1086,12 @@ class ObservableDate extends Date { super.setUTCSeconds(value) } - override setUTCSeconds(value: number, ms?: number): number { + override setUTCSeconds(value: int, ms?: int): long { this.handler?.onModify() return super.setUTCSeconds(value, ms) } - override getMinutes(): number { + override getMinutes(): int { this.handler?.onAccess() return super.getMinutes() } @@ -1111,12 +1101,12 @@ class ObservableDate extends Date { super.setMinutes(value) } - override setMinutes(value: number, sec?: Number, ms?: number): number { + override setMinutes(value: int, sec?: int, ms?: int): long { this.handler?.onModify() return super.setMinutes(value, sec, ms) } - override getUTCMinutes(): number { + override getUTCMinutes(): int { this.handler?.onAccess() return super.getUTCMinutes() } @@ -1126,7 +1116,7 @@ class ObservableDate extends Date { super.setUTCMinutes(value) } - override setUTCMinutes(value: number, sec?: Number, ms?: number): number { + override setUTCMinutes(value: int, sec?: int, ms?: int): long { this.handler?.onModify() return super.setUTCMinutes(value, sec, ms) } diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/stateManagement/base/observeWrappedDate.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/stateManagement/base/observeWrappedDate.ts index 336c7f5afdcf27805cfb399f08a0bfcbd2ffaa02..378b23a3543eaef80f037b5f6c79c07e57afb283 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/stateManagement/base/observeWrappedDate.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/stateManagement/base/observeWrappedDate.ts @@ -138,7 +138,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * @see ECMA-262, 21.4.4.2 * @returns An integer number, between 1 and 31, representing the day of the month for the given date according to local time. */ - public override getDate(): number { + public override getDate(): int { this.conditionalAddRef(); return this.store_.getDate(); } @@ -159,7 +159,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new day. */ - public override setDate(value: number): number { + public override setDate(value: int): long { const result = this.store_.setDate(value); this.meta_.fireChange(); this.executeOnSubscribingWatches('setDate'); @@ -182,7 +182,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @returns An integer number, between 1 and 31, representing the day of the month for the given date according to local time. */ - public override getUTCDate(): number { + public override getUTCDate(): int { this.conditionalAddRef(); return this.store_.getUTCDate(); } @@ -203,7 +203,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new day. */ - public override setUTCDate(value: number): number { + public override setUTCDate(value: int): long { const result = this.store_.setUTCDate(value); this.meta_.fireChange(); this.executeOnSubscribingWatches('setUTCDate'); @@ -226,7 +226,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new day. */ - public override setUTCDay(value: number): number { + public override setUTCDay(value: int): long { const result = this.store_.setUTCDay(value); this.meta_.fireChange(); this.executeOnSubscribingWatches('setUTCDay'); @@ -241,7 +241,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * @returns An integer number, between 0 and 6, corresponding to the day of the week * for the given date, according to local time: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on. */ - public override getDay(): number { + public override getDay(): int { this.conditionalAddRef(); return this.store_.getDay(); } @@ -252,7 +252,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * @returns An integer number, between 0 and 6, corresponding to the day of the week * for the given date, according to local time: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on. */ - public override getUTCDay(): number { + public override getUTCDay(): int { this.conditionalAddRef(); return this.store_.getUTCDay(); } @@ -278,7 +278,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * for example, 1995. Use this function to make sure a year is compliant with years after 2000. * @returns year */ - public override getUTCFullYear(): number { + public override getUTCFullYear(): int { this.conditionalAddRef(); return this.store_.getUTCFullYear(); } @@ -297,7 +297,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * const year = today.getYearFull(); * ``` */ - public override getFullYear(): number { + public override getFullYear(): int { this.conditionalAddRef(); return this.store_.getFullYear(); } @@ -307,7 +307,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new year */ - public override setUTCFullYear(value: number, month?: number, date?: number): number { + public override setUTCFullYear(value: int, month?: int, date?: int): long { const result = this.store_.setUTCFullYear(value, month, date); this.meta_.fireChange(); this.executeOnSubscribingWatches('setUTCFullYear'); @@ -325,17 +325,6 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped this.executeOnSubscribingWatches('setUTCFullYear'); } - /** - * This function is an alias to @link{setFullYear} and left for compatibility with ECMA-262. - * - * @param value new year - */ - public override setYear(value: number): void { - this.store_.setYear(value); - this.meta_.fireChange(); - this.executeOnSubscribingWatches('setYear'); - } - /** * This function is an alias to @link{setFullYear} and left for compatibility with ECMA-262. * @@ -352,7 +341,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new year */ - public override setFullYear(value: number, month?: Number, date?: Number): number { + public override setFullYear(value: int, month?: int, date?: int): long { const result = this.store_.setFullYear(value, month, date); this.meta_.fireChange(); this.executeOnSubscribingWatches('setFullYear'); @@ -381,7 +370,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * const hours = today.getHour(); * ``` */ - public override getHours(): number { + public override getHours(): int { this.conditionalAddRef(); return this.store_.getHours(); } @@ -391,7 +380,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @returns An integer number, between 0 and 23, representing the hour for the given date according to UTC time. */ - public override getUTCHours(): number { + public override getUTCHours(): int { this.conditionalAddRef(); return this.store_.getUTCHours(); } @@ -412,7 +401,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new hours */ - public override setHours(value: number, min?: number, sec?: number, ms?: number): number { + public override setHours(value: int, min?: int, sec?: int, ms?: int): long { const result = this.store_.setHours(value, min, sec, ms); this.meta_.fireChange(); this.executeOnSubscribingWatches('setHours'); @@ -435,7 +424,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new hours */ - public override setUTCHours(value: number, min?: number, sec?: number, ms?: number): number { + public override setUTCHours(value: int, min?: int, sec?: int, ms?: int): long { const result = this.store_.setUTCHours(value, min, sec, ms); this.meta_.fireChange(); this.executeOnSubscribingWatches('setUTCHours'); @@ -453,7 +442,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * const milliseconds = today.getMilliseconds(); * ``` */ - public override getMilliseconds(): number { + public override getMilliseconds(): long { this.conditionalAddRef(); return this.store_.getMilliseconds(); } @@ -463,7 +452,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @returns the milliseconds portion of the time object's value according to universal time. */ - public override getUTCMilliseconds(): number { + public override getUTCMilliseconds(): int { this.conditionalAddRef(); return this.store_.getUTCMilliseconds(); } @@ -484,7 +473,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new ms */ - public override setMilliseconds(value: number): number { + public override setMilliseconds(value: int): long { const result = this.store_.setMilliseconds(value); this.meta_.fireChange(); this.executeOnSubscribingWatches('setMilliseconds'); @@ -507,7 +496,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new ms */ - public override setUTCMilliseconds(value: number): number { + public override setUTCMilliseconds(value: int): long { const result = this.store_.setUTCMilliseconds(value); this.meta_.fireChange(); this.executeOnSubscribingWatches('setUTCMilliseconds'); @@ -525,7 +514,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * const seconds = today.getSeconds(); * ``` */ - public override getSeconds(): number { + public override getSeconds(): int { this.conditionalAddRef(); return this.store_.getSeconds(); } @@ -535,7 +524,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @returns the seconds in the specified date according to universal time. */ - public override getUTCSeconds(): number { + public override getUTCSeconds(): int { this.conditionalAddRef(); return this.store_.getUTCSeconds(); } @@ -545,7 +534,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new seconds */ - public override setSeconds(value: number, ms?: number): number { + public override setSeconds(value: int, ms?: int): long { const result = this.store_.setSeconds(value, ms); this.meta_.fireChange(); this.executeOnSubscribingWatches('setSeconds'); @@ -579,7 +568,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new seconds */ - public override setUTCSeconds(value: number, ms?: number): number { + public override setUTCSeconds(value: int, ms?: int): long { const result = this.store_.setUTCSeconds(value, ms); this.meta_.fireChange(); this.executeOnSubscribingWatches('setUTCSeconds'); @@ -597,7 +586,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * const minutes = today.getMinutes(); * ``` */ - public override getMinutes(): number { + public override getMinutes(): int { this.conditionalAddRef(); return this.store_.getMinutes(); } @@ -618,7 +607,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new minutes */ - public override setUTCMinutes(value: number, sec?: Number, ms?: Number): number { + public override setUTCMinutes(value: int, sec?: int, ms?: int): long { const result = this.store_.setUTCMinutes(value, sec, ms); this.meta_.fireChange(); this.executeOnSubscribingWatches('setUTCMinutes'); @@ -630,7 +619,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @returns the minutes in the specified date according to universal time. */ - public override getUTCMinutes(): number { + public override getUTCMinutes(): int { this.conditionalAddRef(); return this.store_.getUTCMinutes(); } @@ -651,7 +640,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new minutes */ - public override setMinutes(value: number, sec?: number, ms?: number): number { + public override setMinutes(value: int, sec?: int, ms?: int): long { const result = this.store_.setMinutes(value, sec, ms); this.meta_.fireChange(); this.executeOnSubscribingWatches('setUTCMinutes'); @@ -671,7 +660,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * const month = today.getMonth(); * ``` */ - public override getMonth(): number { + public override getMonth(): int { this.conditionalAddRef(); return this.store_.getMonth(); } @@ -682,7 +671,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * @returns An integer number, between 0 and 11, representing the month in the given date according to UTC time. * 0 corresponds to January, 1 to February, and so on. */ - public override getUTCMonth(): number { + public override getUTCMonth(): int { this.conditionalAddRef(); return this.store_.getUTCMonth(); } @@ -692,7 +681,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param month new month */ - public override setMonth(month: number, date?: number): number { + public override setMonth(month: int, date?: int): long { const result = this.store_.setMonth(month, date); this.meta_.fireChange(); this.executeOnSubscribingWatches('setMonth'); @@ -715,7 +704,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param month new month */ - public override setUTCMonth(month: number, date?: number): number { + public override setUTCMonth(month: int, date?: int): long { const result = this.store_.setUTCMonth(month, date); this.meta_.fireChange(); this.executeOnSubscribingWatches('setUTCMonth'); @@ -740,7 +729,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * @see ECMA-262, 21.4.4.10 * @returns A number representing the milliseconds elapsed between 1 January 1970 00:00:00 UTC and the given date. */ - public override getTime(): number { + public override getTime(): long { this.conditionalAddRef(); return this.store_.getTime(); } @@ -753,21 +742,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * @see ECMA-262, 21.4.4.10 * @returns A number representing the milliseconds elapsed between 1 January 1970 00:00:00 UTC and the given date. */ - public override setTime(value: long): void { - this.store_.setTime(value); - this.meta_.fireChange(); - this.executeOnSubscribingWatches('setTime'); - } - - /** - * Sets the number of milliseconds since the epoch, - * which is defined as the midnight at the beginning of January 1, 1970, UTC. - * - * @param value new ms - * @see ECMA-262, 21.4.4.10 - * @returns A number representing the milliseconds elapsed between 1 January 1970 00:00:00 UTC and the given date. - */ - public override setTime(value: number): number { + public override setTime(value: long): long { const result = this.store_.setTime(value); this.meta_.fireChange(); this.executeOnSubscribingWatches('setTime'); @@ -792,7 +767,7 @@ export class WrappedDate extends Date implements IObservedObject, ObserveWrapped * * @param value new timezone offset */ - public override setTimezoneOffset(value: number): number { + public override setTimezoneOffset(value: int): number { const result = this.store_.setTimezoneOffset(value); this.meta_.fireChange(); this.executeOnSubscribingWatches('setTime'); diff --git a/frameworks/bridge/arkts_frontend/koala_projects/incremental/tools/ets-tsc/lib/lib.es5.d.ts b/frameworks/bridge/arkts_frontend/koala_projects/incremental/tools/ets-tsc/lib/lib.es5.d.ts index 6995fc7fb5d0338597acb2b992b936414088a854..febe2549f762a27d2fb8d523cd287e7322737b22 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/incremental/tools/ets-tsc/lib/lib.es5.d.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/incremental/tools/ets-tsc/lib/lib.es5.d.ts @@ -760,85 +760,85 @@ interface Date { /** Returns a time as a string value appropriate to the host environment's current locale. */ toLocaleTimeString(): string; /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */ - valueOf(): number; + valueOf(): long; /** Gets the time value in milliseconds. */ - getTime(): number; + getTime(): long; /** Gets the year, using local time. */ - getFullYear(): number; + getFullYear(): int; /** Gets the year using Universal Coordinated Time (UTC). */ - getUTCFullYear(): number; + getUTCFullYear(): int; /** Gets the month, using local time. */ - getMonth(): number; + getMonth(): int; /** Gets the month of a Date object using Universal Coordinated Time (UTC). */ - getUTCMonth(): number; + getUTCMonth(): int; /** Gets the day-of-the-month, using local time. */ - getDate(): number; + getDate(): int; /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */ - getUTCDate(): number; + getUTCDate(): int; /** Gets the day of the week, using local time. */ - getDay(): number; + getDay(): int; /** Gets the day of the week using Universal Coordinated Time (UTC). */ - getUTCDay(): number; + getUTCDay(): int; /** Gets the hours in a date, using local time. */ - getHours(): number; + getHours(): int; /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */ - getUTCHours(): number; + getUTCHours(): int; /** Gets the minutes of a Date object, using local time. */ - getMinutes(): number; + getMinutes(): int; /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */ - getUTCMinutes(): number; + getUTCMinutes(): int; /** Gets the seconds of a Date object, using local time. */ - getSeconds(): number; + getSeconds(): int; /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */ - getUTCSeconds(): number; + getUTCSeconds(): int; /** Gets the milliseconds of a Date, using local time. */ - getMilliseconds(): number; + getMilliseconds(): long; /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */ - getUTCMilliseconds(): number; + getUTCMilliseconds(): int; /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */ getTimezoneOffset(): number; /** * Sets the date and time value in the Date object. * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT. */ - setTime(time: number): number; + setTime(time: long): long; /** * Sets the milliseconds value in the Date object using local time. * @param ms A numeric value equal to the millisecond value. */ - setMilliseconds(ms: number): number; + setMilliseconds(ms: int): long; /** * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC). * @param ms A numeric value equal to the millisecond value. */ - setUTCMilliseconds(ms: number): number; + setUTCMilliseconds(ms: int): long; /** * Sets the seconds value in the Date object using local time. * @param sec A numeric value equal to the seconds value. * @param ms A numeric value equal to the milliseconds value. */ - setSeconds(sec: number, ms?: number): number; + setSeconds(sec: int, ms?: int): long; /** * Sets the seconds value in the Date object using Universal Coordinated Time (UTC). * @param sec A numeric value equal to the seconds value. * @param ms A numeric value equal to the milliseconds value. */ - setUTCSeconds(sec: number, ms?: number): number; + setUTCSeconds(sec: int, ms?: int): long; /** * Sets the minutes value in the Date object using local time. * @param min A numeric value equal to the minutes value. * @param sec A numeric value equal to the seconds value. * @param ms A numeric value equal to the milliseconds value. */ - setMinutes(min: number, sec?: number, ms?: number): number; + setMinutes(min: int, sec?: int, ms?: int): long; /** * Sets the minutes value in the Date object using Universal Coordinated Time (UTC). * @param min A numeric value equal to the minutes value. * @param sec A numeric value equal to the seconds value. * @param ms A numeric value equal to the milliseconds value. */ - setUTCMinutes(min: number, sec?: number, ms?: number): number; + setUTCMinutes(min: int, sec?: int, ms?: int): long; /** * Sets the hour value in the Date object using local time. * @param hours A numeric value equal to the hours value. @@ -846,7 +846,7 @@ interface Date { * @param sec A numeric value equal to the seconds value. * @param ms A numeric value equal to the milliseconds value. */ - setHours(hours: number, min?: number, sec?: number, ms?: number): number; + setHours(hours: int, min?: int, sec?: int, ms?: int): long; /** * Sets the hours value in the Date object using Universal Coordinated Time (UTC). * @param hours A numeric value equal to the hours value. @@ -854,43 +854,43 @@ interface Date { * @param sec A numeric value equal to the seconds value. * @param ms A numeric value equal to the milliseconds value. */ - setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number; + setUTCHours(hours: int, min?: int, sec?: int, ms?: int): long; /** * Sets the numeric day-of-the-month value of the Date object using local time. * @param date A numeric value equal to the day of the month. */ - setDate(date: number): number; + setDate(date: int): long; /** * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC). * @param date A numeric value equal to the day of the month. */ - setUTCDate(date: number): number; + setUTCDate(date: int): long; /** * Sets the month value in the Date object using local time. * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used. */ - setMonth(month: number, date?: number): number; + setMonth(month: int, date?: int): long; /** * Sets the month value in the Date object using Universal Coordinated Time (UTC). * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used. */ - setUTCMonth(month: number, date?: number): number; + setUTCMonth(month: int, date?: int): long; /** * Sets the year of the Date object using local time. * @param year A numeric value for the year. * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified. * @param date A numeric value equal for the day of the month. */ - setFullYear(year: number, month?: number, date?: number): number; + setFullYear(year: int, month?: int, date?: int): long; /** * Sets the year value in the Date object using Universal Coordinated Time (UTC). * @param year A numeric value equal to the year. * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. * @param date A numeric value equal to the day of the month. */ - setUTCFullYear(year: number, month?: number, date?: number): number; + setUTCFullYear(year: int, month?: int, date?: int): long; /** Returns a date converted to a string using Universal Coordinated Time (UTC). */ toUTCString(): string; /** Returns a date as a string value in ISO format. */