@salesforce/apex-node
Version:
Salesforce JS library for Apex
11 lines (10 loc) • 601 B
TypeScript
export declare const MILLISECONDS_PER_MINUTE = 60000;
export declare function getCurrentTime(): number;
/**
* Returns the formatted date and time given the milliseconds in numbers or UTC formatted string
* @param startTime start time in millisecond numbers or UTC format string
* @param format either 'ISO' or 'locale'. Defaults to 'locale' to keep backward compatible.
* @returns formatted date and time
*/
export declare function formatStartTime(startTime: string | number | undefined, format?: 'ISO' | 'locale'): string;
export declare function msToSecond(timestamp: string | number): string;