@bitbybit-dev/base
Version:
Bit By Bit Developers Base CAD Library to Program Geometry
217 lines (216 loc) • 4.87 kB
TypeScript
export declare namespace Dates {
class DateDto {
constructor(date?: Date);
/**
* The date
* @default undefined
*/
date: Date;
}
class DateStringDto {
constructor(dateString?: string);
/**
* The date string
* @default undefined
*/
dateString: string;
}
class DateSecondsDto {
constructor(date?: Date, seconds?: number);
/**
* The date to update the seconds for
* @default undefined
*/
date: Date;
/**
* The seconds of the date
* @default 30
* @minimum 0
* @maximum Infinity
* @step 1
*/
seconds: number;
}
class DateDayDto {
constructor(date?: Date, day?: number);
/**
* The date
* @default undefined
*/
date: Date;
/**
* The day of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
day: number;
}
class DateYearDto {
constructor(date?: Date, year?: number);
/**
* The date
* @default undefined
*/
date: Date;
/**
* The year of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
year: number;
}
class DateMonthDto {
constructor(date?: Date, month?: number);
/**
* The date
* @default undefined
*/
date: Date;
/**
* The month of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
month: number;
}
class DateHoursDto {
constructor(date?: Date, hours?: number);
/**
* The date
* @default undefined
*/
date: Date;
/**
* The hours of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
hours: number;
}
class DateMinutesDto {
constructor(date?: Date, minutes?: number);
/**
* The date
* @default undefined
*/
date: Date;
/**
* The minutes of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
minutes: number;
}
class DateMillisecondsDto {
constructor(date?: Date, milliseconds?: number);
/**
* The date
* @default undefined
*/
date: Date;
/**
* The milliseconds of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
milliseconds: number;
}
class DateTimeDto {
constructor(date?: Date, time?: number);
/**
* The date
* @default undefined
*/
date: Date;
/**
* The time of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
time: number;
}
class CreateFromUnixTimeStampDto {
constructor(unixTimeStamp?: number);
/**
* The unix time stamp
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
unixTimeStamp: number;
}
class CreateDateDto {
constructor(year?: number, month?: number, day?: number, hours?: number, minutes?: number, seconds?: number, milliseconds?: number);
/**
* The year of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
year: number;
/**
* The month of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
month: number;
/**
* The day of the month
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
day: number;
/**
* The hours of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
hours: number;
/**
* The minutes of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
minutes: number;
/**
* The seconds of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
seconds: number;
/**
* The milliseconds of the date
* @default 1
* @minimum 0
* @maximum Infinity
* @step 1
*/
milliseconds: number;
}
}