@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
22 lines (21 loc) • 1.02 kB
TypeScript
export declare namespace DateTime {
const DateTimeFormatCharacter: {
Year: string;
Month: string;
Day: string;
};
function copyDate(src: Date, dest: Date): void;
function copyTime(src: Date, dest: Date): void;
function isEqual(d1: Date, d2: Date): boolean;
function isEqualDates(d1: Date, d2: Date): boolean;
function isEqualTimes(d1: Date, d2: Date): boolean;
function compareDateTimes(d1: Date, d2: Date): 1 | 0 | -1;
function compareDates(d1: Date, d2: Date): 1 | 0 | -1;
function compareTimes(d1: Date, d2: Date): 1 | 0 | -1;
function getDateOnly(date: Date): Date;
function getTimeOnly(date: Date, includeSeconds?: boolean, includeMilliseconds?: boolean): Date;
function getLastDayOfMonth(year: number, month: number): Date;
function getLastDayOfPreviousMonth(year: number, month: number): Date;
function getFirstDayOfNextMonth(year: number, month: number): Date;
function getLocaleDateStringFormat(localeId: any): string;
}