vremel
Version:
JavaScript date utility library for Temporal API
10 lines • 652 B
TypeScript
import type { GenericDateConstructor, Temporal } from "../types.js";
/**
* Returns `Date` which represents exact time of the given temporal object.
*
* @param dateTime Temporal object which includes exact time info
* @param DateConstructor `Date` or extended class for return type, default is `Date`
* @returns `Date` (or its subclass) object which represents the exact time of the given Temporal object
*/
export declare function toDateFromExactTime<DateType extends Date = Date>(dateTime: Temporal.ZonedDateTime | Temporal.Instant, DateConstructor?: GenericDateConstructor<DateType>): DateType;
//# sourceMappingURL=toDateFromExactTime.d.ts.map