MCPcopy Create free account
hub / github.com/adobe/react-spectrum / constructor

Method constructor

packages/@internationalized/date/src/CalendarDate.ts:177–183  ·  view source on GitHub ↗
(hour: number = 0, minute: number = 0, second: number = 0, millisecond: number = 0)

Source from the content-addressed store, hash-verified

175 public readonly millisecond: number;
176
177 constructor(hour: number = 0, minute: number = 0, second: number = 0, millisecond: number = 0) {
178 this.hour = hour;
179 this.minute = minute;
180 this.second = second;
181 this.millisecond = millisecond;
182 constrainTime(this);
183 }
184
185 /** Returns a copy of this time. */
186 copy(): Time {

Callers

nothing calls this directly

Calls 1

constrainTimeFunction · 0.90

Tested by

no test coverage detected