@yash101/schwab-api-client
Version:
A TypeScript client library for interacting with the Charles Schwab Brokerage APIs.
14 lines • 575 B
TypeScript
import { DateAndTime } from "../api-types/api.types";
/**
* Converts a Date object to an ISO-8601 string (yyyy-MM-dd'T'HH:mm:ss.SSSZ).
* @param date - The Date object to convert.
* @returns The ISO-8601 formatted string.
*/
export declare function toISO8601(date: Date): DateAndTime;
/**
* Converts an ISO-8601 string (yyyy-MM-dd'T'HH:mm:ss.SSSZ) to a Date object.
* @param isoString - The ISO-8601 formatted string.
* @returns The corresponding Date object.
*/
export declare function fromISO8601(isoString: DateAndTime): Date;
//# sourceMappingURL=TimeUtil.d.ts.map